$SIG{CHLD} = \&REAPER; # waitpid code goes here