The OS will notify the parent of a child's death by sending it a SIGCHLD signal, so you can set up a signal handler in which you reap the children using wait or waitpid. In its most simple case:
$SIG{CHLD} = sub { wait };
(On many systems, $SIG{CHLD} = 'IGNORE'; has the same effect.)
In reply to Re: Multiple Childern/Zombies
by Eliya
in thread Multiple Childern/Zombies
by clickingwires
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |