process: document kill(0), disallow kill(O_RDWR)
authorSam Roberts <sam@strongloop.com>
Fri, 11 Oct 2013 05:28:01 +0000 (22:28 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Mon, 2 Dec 2013 18:41:37 +0000 (10:41 -0800)
commit8aac118b69a10a134e57e8e066c56ba7370d25cc
treee15798b61427bf1ab3b39224be958cfab7243894
parent9b8fcff43575592ace3d391ee47184f98ed755df
process: document kill(0), disallow kill(O_RDWR)

The null signal test existed, but only tested the case where the target
process existed, not when it did not exist.

Also clarified that SIGUSR1 is reserved by Node.js only for receiveing,
its not at all reserved when sending a signal with kill().

kill(pid, 'O_RDWR'), or any other node constant, "worked". I fixed this
by also checking for 'SIG'. The same as done in the isSignal() function.
Now the signal names supported by process.kill() are the same as those
supported by process.on().
doc/api/process.markdown
src/node.js
test/simple/test-process-kill-null.js