in reply to Eval leaving zombies when dying with alarm
There might be another way to specify this kind of SIGCHLD action, but this is basically what needs to be done.use POSIX ":sys_wait_h"; sub reaper { do { $kid = waitpid(-1, WNOHANG); } while $kid > 0; } $SIG{CHLD} = \&reaper;
Update: using $SIG{CHLD} = 'IGNORE'; should also do this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Eval leaving zombies when dying with alarm
by yogsothoth (Novice) on Apr 25, 2008 at 21:32 UTC | |
by pc88mxer (Vicar) on Apr 25, 2008 at 22:23 UTC | |
by yogsothoth (Novice) on Apr 25, 2008 at 22:52 UTC |