4 ms·
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
by ankhmoop 18y ago
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.