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.
This commit is contained in:
parent
9f37882918
commit
91d5de57ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue