Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Reading from a Named Pipe

by nzgrover (Scribe)
on Sep 28, 2006 at 20:42 UTC ( #575425=note: print w/replies, xml ) Need Help??

in reply to Re: Reading from a Named Pipe
in thread Reading from a Named Pipe

The reason I've done the "open" with the anonymous pipe is to enable the parent to get output from the child.
The crux here is that the read from the named pipe my $this_line = <FIFO> could potential block indefinitely. That is why it is nessary (AFAIK) to fork (create the child) and have a timeout which kills the child if it does not manage to read from the pipe.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://575425]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-10-17 04:43 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (71 votes). Check out past polls.