Posted By

alfirth on 01/10/11


Tagged

fork child sig chld reaper


Versions (?)

sig chld reaper


 / Published in: Perl
 

  1. sub REAPER {
  2. while (waitpid(-1, &WNOHANG) > 0) {
  3. # print "killed one\n";
  4. $running--;
  5. $killed++;
  6. }
  7. }

Report this snippet  

You need to login to post a comment.