anbrus is almost right, but you don't need wait to get SIGCHLD. The os always sends you that when the child exits. You just need to handle it. Try setting $SIG{CHLD} = 'IGNORE'; before launching the child.
After Compline,
Zaxo
In reply to Re: Using 'kill' to see if a process is stil alive
by Zaxo
in thread Using 'kill' to see if a process is stil alive
by fletcher_the_dog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |