USE_SIGCHLD

Yuval Kogman <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Hello POE hackers

POE 1.0001 had a patch that conditionally enabled $SIG{CHLD} support
for immediate reaping of child processes (as opposed to POE's once
per second polling).

Instead of polling at an interval, the same polling code is
immediatley queued after SIGCHLD arrives, so that on the next loop
cycle wait() is called, and SIGCHLD is delivered. This means that
system() etc are still supposed to continue working inside POE code,
because the SIGCHLD handler never calls wait() itself, and thus
doesn't interfere with Perl's wait() call.

Anyway, this code tries to be compatible, but is probably subtly
different, so please run

	env POE_USE_SIGCHLD=1 make test

on your code and tell me if it breaks before I forget what I did.

kthx, xoxo
nothingmuch

-- 
  Yuval Kogman <[email protected]>
http://nothingmuch.woobling.org  0xEBD27418
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.