Michael C. Toren on Fri, 11 Apr 2003 16:44:12 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Linux FIFOs


> Why would closing a file handle only the writer can see do anything
> to the reader's perception of reality?

That's how FIFO's operate.  Opening a FIFO for read access will block
until the same FIFO is also opened for write access, and opening a FIFO
for write access will block until the same FIFO is also opened for read
access.  After both sides have been successfully opened, if the writer
closes his side the reader will detect an EOF condition on subsequent
reads.

-mct
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug