[poe-commits] poe/lib/POE/Wheel Run.pm,1.68,1.69
Brought to you by:
rcaputo
From: <rc...@us...> - 2005-04-24 15:58:49
|
Update of /cvsroot/poe/poe/lib/POE/Wheel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8851/lib/POE/Wheel Modified Files: Run.pm Log Message: Document that POE::Wheel::Run and POE do not reap child processes unless an event is registered for SIGCHLD. Index: Run.pm =================================================================== RCS file: /cvsroot/poe/poe/lib/POE/Wheel/Run.pm,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** Run.pm 22 Apr 2005 20:32:11 -0000 1.68 --- Run.pm 24 Apr 2005 15:58:40 -0000 1.69 *************** *** 1168,1171 **** --- 1168,1185 ---- based communication with them. + Wheel::Run does not reap child processes. For that, you need to + register a SIGCHLD handler: + + $kernel->sig(CHLD => "your_event"); + + The session will then receive your_event with details about $? when + the wheel's process exits and is reaped. POE will reap child + processes as a side effect. + + Another way to do it is to register $SIG{CHLD} = "IGNORE". Use + sparingly and with caution: This may clobber a handler that POE has + already registered for SIGCHLD. Why does IGNORE work this way? See + the discussion in perldoc perlipc. + =head1 PUBLIC METHODS |