in reply to (tye)Re: multiple fork()
in thread multiple fork()
In my terminology, this is catching the SIG CHLD. I haven't had any trouble with this sort of setup under some extremely heavy loads.use POSIX (); $SIG{CHLD} = \&sig_chld; sub sig_chld { 1 while (waitpid(-1, POSIX::WNOHANG()) > 0); $SIG{CHLD} = \&sig_chld; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: multiple fork()
by tye (Sage) on Apr 17, 2001 at 00:32 UTC | |
by Rhandom (Curate) on Apr 17, 2001 at 00:55 UTC | |
by tye (Sage) on Apr 17, 2001 at 01:04 UTC | |
by Rhandom (Curate) on Apr 17, 2001 at 01:15 UTC | |
by tye (Sage) on Apr 17, 2001 at 01:25 UTC |