Date: Mon, 6 Sep 1999 00:50:01 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/13593: Problems with FIFO and select Message-ID: <199909060750.AAA35671@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/13593; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: freebsd-gnats-submit@FreeBSD.ORG, tarkhil@asteroid.svib.ru Cc: Subject: Re: kern/13593: Problems with FIFO and select Date: Mon, 6 Sep 1999 17:46:06 +1000 >>Description: >Attempt to open FIFO file with O_WRONLY|O_NONBLOCK results in Device >not configured error. This is because there is no reader when the FIFO is opened for writing (O_WRONLY opens of FIFOs normally block waiting for a reader, but O_NONBLOCK gives an error instead). >However, when FIFO is opened with O_RDWR and O_NONBLOCK, every attempt >to select(2) its handler for writing doesn't wait until someone opens >FIFO for reading, but instead FIFO is ready to write at every select. This is because O_RDWR gives both a reader and a writer. Summary: not a FreeBSD bug. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909060750.AAA35671>