Posted on 2006-08-21 13:53:15-07 by pygo
reading from a named pipe with IO::File - does it block?
Hi all,

I use the IO::File module to open a fifo, which I use to communicate with another process. I once read, that reading with the < > from this filehandle would noch block, if there is nothing in it. But it now seems, as if it does block.
I opened the fifo with the +> option, as it otherwise blocks on opening when there is no other part opening it for reading.

Is there an easier way for using named pipes without blocking or am I simply doing anything wrong?

Thanks a lot in advance - pygo
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.