Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal: new libc/libutil functions to map SIGXXXX <-> "XXXX"



    Date:        Fri, 28 Apr 2017 18:59:08 +0000 (UTC)
    From:        christos%astron.com@localhost (Christos Zoulas)
    Message-ID:  <oe03ds$e7j$1%blaine.gmane.org@localhost>

  | Signal 0 is special -- unfortunately it does not have a name... Perhaps
  | "0" <-> 0?

No, 0 is not a signal, special or otherwise - rather it can be used instead
of a signal (sometimes, like in kill(2)) to achieve a different result
(which is more co-incidence than planned I believe - it was not initially 
documented to be possible).   To count as a signal it needs to affect (or at
least be noticed, or noticeable, by) the affected process(es).

Giving it any kind of signal name would be a mistake.

And all this is why it is a good value to return to indicate "not a signal".

kre



Home | Main Index | Thread Index | Old Index