How to tell if a forked process is done?

Erik Max Francis max at alcyone.com
Wed Sep 24 19:28:07 EDT 2003


Klaus Alexander Seistrup wrote:

> Anyway you look at it, killing blindly is bad programming practice.

But he's killing with a signal of 0.  From kill(2):

       If sig is 0, then no signal is sent, but error checking is
       still performed.

It's perfectly reasonable behavior to kill a process with a 0 signal; it
does no harm.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ I love mankind; it's people I can't stand.
\__/  Charles Schultz




More information about the Python-list mailing list