Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: Select on child output problem

by topher (Scribe)
on May 03, 2012 at 02:31 UTC ( #968609=note: print w/replies, xml ) Need Help??

in reply to Re: Select on child output problem
in thread Select on child output problem

It looks like that leaves it blocking (and continuing to read) on the first filehandle it processes. I don't see it ever move on through the loop.

From previous researching on this, it seems that there's no real equivalent to EOF for this type of communication without closing the file descriptor.

Pulling all available data without blocking would be ideal, but my bigger problem is just getting to the next file handle from the group returned by IO::Select without waiting for a child to die first. I can't understand why it's trying to close and wait on the child PID. Even if I comment out the close bit (which isn't reached anyway), I still get the same result with the close on the FD and wait on the child PID.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968609]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2018-06-18 12:45 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.