in reply to Re: Queries on open3
in thread Queries on open3
When I change my function as below and send "sleep 50" as a command, can_write is returning input file handle as one of the value. so it means it can be written ?. I expected it should not return input file handle since we cannot write into 'sleep' command.
Any Explanation or fix??
Thanks,sub canSendInput { my $self = shift; my $pid = waitpid($self->{pid}, WNOHANG) my @ready = $self->{'selector'}->can_write(1);# Dumper(\@ready); }
Thiagu
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Queries on open3
by ikegami (Patriarch) on Apr 23, 2009 at 14:33 UTC | |
by thiagu_mvt (Sexton) on May 11, 2009 at 06:14 UTC |
In Section
Seekers of Perl Wisdom