From 91d5de57ff10509b31b3914d16cbc8cddb8c5fde Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Thu, 9 May 2019 12:32:17 -0400 Subject: [PATCH] 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. --- winsup/cygwin/fhandler_fifo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;