On Mon, Aug 26, 2002 at 06:46:14PM -0400, Peter Chen wrote:
> Does POE::Wheel::Run always emit a CloseEvent?
> 
> I have encountered a strange situation where POE::Wheel::Run seems to
> omit emitting a CloseEvent.  This happens when I do a "rpm -Uvv
> --percent" with a bunch of rpm's.  Most of the time this works just
> fine, but occasionally the CloseEvent never appears.  This of course
> turns up as a sporadic bug, since I am using both sigchild and
> CloseEvent to indicate that the process has completed and there is no
> more output.
> 
> Has anybody else seen this?  TIA.

I haven't, but I don't use POE::Wheel::Run as much as you do.  Is it
possible that occasionally the SIGCHLD is being delivered before the
STDOUT/STDERR pipes close, so the wheel is being destroyed before it
can emit a CloseEvent?

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

Reply via email to