Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r--winsup/cygwin/fhandler_fifo.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 5733ec778..9112314fe 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -85,11 +85,20 @@ fhandler_fifo::open (int flags, mode_t)
bool reader, writer, duplexer;
DWORD open_mode = FILE_FLAG_OVERLAPPED;
+ if (flags & O_PATH)
+ {
+ query_open (query_read_attributes);
+ nohandle (true);
+ }
+
/* Determine what we're doing with this fhandler: reading, writing, both */
switch (flags & O_ACCMODE)
{
case O_RDONLY:
- reader = true;
+ if (query_open ())
+ reader = false;
+ else
+ reader = true;
writer = false;
duplexer = false;
break;