Posted By


alfirth on 01/10/11

Tagged


Statistics


Viewed 157 times
Favorited by 0 user(s)

Related snippets


sig chld reaper


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  1. sub REAPER {
  2. while (waitpid(-1, &WNOHANG) > 0) {
  3. # print "killed one\n";
  4. $running--;
  5. $killed++;
  6. }
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.