summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2019-05-09 12:32:17 -0400
committerKen Brown <kbrown@cornell.edu>2019-05-09 14:41:29 -0400
commit0771fc703158b67ec14d82a3bb3ec1b4b72b094c (patch)
tree8fc3568d78697656eb1f85a44d7db5fea761e84c
parent102571f85da6344591848df2c8ebc200699cb031 (diff)
downloadcygnal-0771fc703158b67ec14d82a3bb3ec1b4b72b094c.tar.gz
cygnal-0771fc703158b67ec14d82a3bb3ec1b4b72b094c.tar.bz2
cygnal-0771fc703158b67ec14d82a3bb3ec1b4b72b094c.zip
Cygwin: FIFO: make read_ready an auto-reset event
There's no point in allowing a writer to attempt to open until we've created a pipe instance.
-rw-r--r--winsup/cygwin/fhandler_fifo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 4bf157d39..dab7df92b 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -461,7 +461,7 @@ fhandler_fifo::open (int flags, mode_t)
char npbuf[MAX_PATH];
__small_sprintf (npbuf, "r-event.%08x.%016X", get_dev (), get_ino ());
- if (!(read_ready = CreateEvent (sa_buf, true, false, npbuf)))
+ if (!(read_ready = CreateEvent (sa_buf, false, false, npbuf)))
{
debug_printf ("CreateEvent for %s failed, %E", npbuf);
res = error_set_errno;