Is there any reader on my FIFO ?

Leslie Mikesell les at chinet.UUCP
Sun May 8 14:06:51 AEST 1988


In article <745 at ambush.UUCP> kimcm at ambush.UUCP (Kim Chr. Madsen) writes:
>... Is there a way to determine whether a FIFO
>has a reader associated and can fcntl(2) be used for this purpose?

If the O_NDELAY flag is set, open() will return an error when opening
a FIFO for writing-only when no process currently has the file open for
reading.  Errno should be ENXIO in this case.

  Les Mikesell



More information about the Comp.sys.att mailing list