jalebie has asked for the wisdom of the Perl Monks concerning the following question:
use POSIX "sys_wait_h"; use POSIX "signal_h"; ... ... ... sub reaper { my $process_id = waitpid(-1,&WNOHANG); if (WIFEXITED($?)) { $process_count--; } } $SIG{CHLD} = \&reaper;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: reaper subroutines
by tye (Sage) on Aug 23, 2001 at 21:44 UTC | |
by chromatic (Archbishop) on Aug 24, 2001 at 02:27 UTC |