This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: open() and named pipes

On Wed, Nov 26, 2008 at 12:38:49PM -0500, Christopher Faylor wrote:
> On Wed, Nov 26, 2008 at 03:50:52PM +0100, Enrico Forestieri wrote:
> >According to
> >
> >the open() function shall fail and sets errno to ENXIO if
> >O_WRONLY | O_NONBLOCK is set, the named file is a FIFO, and no
> >process has the file open for reading.
> >
> >This is not the case on Cygwin, as demonstrated by the attached
> >test case. I get "This should not happen.", while the same program
> >outputs "No process is reading from the other end." on both Linux
> >and Solaris.
> This should be fixed in the current snapshot.  However, be aware that
> snapshots come from the 1.7.x trunk rather than the 1.5.x

Sorry for the very late reply and thanks for fixing the return code
from open(). However, this is still not posix compliant as errno is
set to ENOENT instead of ENXIO. Indeed, the attached test case prints
"No process is reading from the other end." on both Linux and Solaris
but nothing on Cygwin.


Attachment: fifobug.c
Description: Text document

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]