Help for this page
$SIG{CHLD} = \&REAPER; sub REAPER { ... } $SIG{CHLD} = \&REAPER; # install *after* calling waitpid }