The child immediately does an "exit" - so where's the mystery?if( $pid ){ # we are the parent: sleep 3; say kill 0 => $pid; waitpid $pid => 0; } else { # we are the child: exit; }
One world, one people
In reply to Re: Check if forked process is dead
by anonymized user 468275
in thread Check if forked process is dead
by petr999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |