in reply to
Detecting fork events in a module?
if you're on a linux box, then there's a $SIG{CHLD} to watch out for. see
perldoc -f fork
and
perldoc perlipc
--------------------------------
masses are the opiate for religion.
Comment on
Re: Detecting fork events in a module?
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: Detecting fork events in a module?
by
Anno
(Deacon)
on Aug 02, 2007 at 09:35 UTC
The
SIGCHLD
signal exists on all Unix systems, not only Linux (and Perl probably emulates it on others), but it is issued when a child exits, not when it is created. The OP wants to "detect fork events" which appears to require the latter.
Anno
[reply]
[d/l]
In Section
Seekers of Perl Wisdom