Help for this page

Select Code to Download


  1. or download this
    $SIG{CHLD} = sub {while (waitpid(-1, WNOHANG) > 0){} };
    
  2. or download this
     $SIG{CHLD} = 'IGNORE' # This often works with a few exceptions. 
                              # set 'IGNORE' is fastest if it does work.
                              # But there is something to be said for work
    +ing
                              # all the time, albeit slower (see first sol
    +ution)