Subject: | Patch to update SIGCHLD handling |
POE made improvements in SIGCHLD handling, and signals in general, sometime after this module was written. The short patch switches PreforkDispatch.pm to use sig_child() instead of sig() and to stop POE::Kernel in the child program.
Subject: | preforkdispatch-sigchld-update.patch |
203,205d202
< # Register signal for rpc forks exiting
< $kernel->sig(CHLD => "child_exited");
<
488a486,488
>
> POE::Kernel->sig_child( $wheel->PID(), 'child_exited' );
>
504a505,509
>
> # Forking a running POE program brings along a copy of the running
> # POE::Kernel and its sessions. We won't be using them.
> POE::Kernel->stop();
>