Call for release testing

Darren Tucker dtucker at zip.com.au
Fri Mar 4 19:34:59 EST 2005


Damien Miller wrote:
> Is "kill -0" standard? (it works on BSD, at least)

According to my copy of Stevens' APUE, a signal of zero is defined in 
POSIX.1 as a null signal, so yes it's standard.  It also says that it 
"is often used to determine if a specific process exists".

Now, "will it work everywhere" is a different question.

 > Otherwise we could use grep -q "$PID"

That's racy since it might find the argument to grep depending on the 
scheduling.  You can use awk to pick out the right column from the ps 
output but then you potentiall have to deal with the different ps output 
formats...

I vote to make it "kill -0".

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list