Help for this page
sub REAPER { # don't work almost on windows while (($child = waitpid(-1,WNOHANG)) > 0) {} $SIG{CHLD} = \&REAPER; } $SIG{CHLD} = \&REAPER;
use POSIX ":sys_wait_h"; ... #waitpid $CHILD{2}, WNOHANG; # wait; #waitpid $CHILD{3}, WNOHANG; # wait; print "parent process\n";