(from perldoc -f waitpid)
use POSIX ":sys_wait_h"; ... do { $kid = waitpid(-1, WNOHANG); } until $kid > 0;
status of the child is in $?
HTH!
In reply to Re: Killing a hanging child process
by ozone
in thread Killing a hanging child process
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |