On Tue, Feb 11, 2003 at 11:05:48AM +1100, [EMAIL PROTECTED] wrote:
> I seem to be having an ErrorEvent triggered within POE::Wheel::Run upon the
> end of the input from STDERR and STDOUT. eg. 
> 
> sub _error {
>     my ( $syscall, $errno, $error, $id, $handle ) = @_[ ARG0 .. ARG4 ];
>     print Dumper( $syscall, $errno, $error, $id, $handle );
> }
> 
> $VAR1 = 'read';
> $VAR2 = '0';
> $VAR3 = '';
> $VAR4 = 2;
> $VAR5 = 'STDERR';
> $VAR1 = 'read';
> $VAR2 = '0';
> $VAR3 = '';
> $VAR4 = 2;
> $VAR5 = 'STDOUT';
> 
> Firstly, is this expected?  Secondly, when I have an executable that dies
> during execution (eg. Program => 'perl -e "die q/ horribly /;"'), the
> ErrorEvent is not triggered.
> 
> Any ideas?

1. It is expected.  Most operating systems report read error 0 to
signify the end of a file.

2. I am surprised that ErrorEvent is not triggered in that case.  Are
you using POE 0.25?  If there is a problem in Wheel::Run, it would
help greatly if you could submit a test case that reproduces it.

-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/

Reply via email to