- /* Set non-blocking mode *after* the open. The reason is that
- * when reading from a FIFO, if we open in non-blocking mode
- * then any reads from the FIFO will return EOF straight away
- * without waiting for a writing process. If we set O_NONBLOCK
- * after doing the open, then we apparently get to wait for a
- * writer. This broken behaviour has been observed on both Linux
- * & Solaris. --SDM
- */
- fcntl(fd, F_SETFL, oflags | O_NONBLOCK);
-