develooper Front page | perl.poe | Postings from June 2008

USE_SIGCHLD

Thread Next
From:
Yuval Kogman
Date:
June 6, 2008 03:33
Subject:
USE_SIGCHLD
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 <nothingmuch@woobling.org>
http://nothingmuch.woobling.org  0xEBD27418


Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About