News for hackers. Stuff that matters.
Re:Kill -0 by ankhmoop on Friday March 27, 2009 @04:38PM (#535690)
It's referenced by the kill(2) syscall documentation:

'A value of 0, however, will cause error checking to be performed (with no signal being sent). This can be used to check the validity of pid.'

On Mac OS X, the actual kernel implementation is: if (uap->signum) psignal(p, uap->signum);

So if signum == 0, no signal is sent, but this occurs after the destination (and permissions) are checked for validity.

There are no comments on this comment yet.