On Thu, Dec 06, 2001 at 02:02:13PM -0700, Chris Fedde wrote:
> How should I detect EOF on the stdout from POE::Wheel::Run?
> 
> SIGCHLD seems to come well before the last StdoutEvent, buffering
> I expect.  I also see two ErrorEvents (ARG0='read', ARG1=0).  One
> soon after the SIGCHLD and another after the last StdoutEvent.

[...]

The SIGCHLD is probably arriving before the child's STDOUT is fully
delivered.

The two ErrorEvents are probably for STDERR first (since there's
nothing to buffer) and STDOUT later.

Rather than make people deal with SIGCHLD or counting ErrorEvents, the
Wheel should probably emit some sort of "hey, the child is done" event
when the child finishes up.

I'm experimenting with rt to track simpler requests.  This request is
at: http://rt.cpan.org/Ticket/Display.html?id=88

More complex requests, like "do the object layer already" are on the
web site until designs can be hashed out.

http://poe.perl.org/?POE_Design

-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Reply via email to