Xref: utzoo comp.lang.c:10023 comp.sys.att:3191 Path: utzoo!mnetor!uunet!ncc!alberta!att!ihnp4!chinet!les From: les@chinet.UUCP (Leslie Mikesell) Newsgroups: comp.lang.c,comp.sys.att Subject: Re: Is there any reader on my FIFO ? Message-ID: <5129@chinet.UUCP> Date: 8 May 88 04:06:51 GMT References: <745@ambush.UUCP> Reply-To: les@chinet.UUCP (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 9 In article <745@ambush.UUCP> kimcm@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