in reply to Re: Finding if a child process has terminated
in thread Finding if a child process has terminated

Note that I have to add a
$SIG{CHLD}='IGNORE';
for this to work (with no other previous $SIG{CHLD})

Running AIX 5.2 Perl 5.8.0
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."

Replies are listed 'Best First'.
Re^3: Finding if a child process has terminated
by Fletch (Bishop) on Mar 28, 2005 at 16:40 UTC

    Ah, you're correct. Until something waits on the process it'll still have an entry in the process table and hence be "alive" as far as sending signal 0 goes. Sending signal 0 is probably of more use in checking if an unrelated process (or at least non-descendent process) is alive.

    Update: And you can see this behavior with the code below.