From 90f5de33d5441eaf63bc779a5ee4ab836d6f8e02 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 18 Feb 2010 15:07:38 +0000 Subject: [PATCH] * fhandler.cc (fhandler_base::setup_overlapped): Revert to starting with handle in signalled state as it seems to fix some hangs. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e99507da9..57abafa86 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-02-18 Christopher Faylor + + * fhandler.cc (fhandler_base::setup_overlapped): Revert to starting + with handle in signalled state as it seems to fix some hangs. + 2010-02-15 Corinna Vinschen * path.cc (path_conv::check): Treat native DOS paths as "noacl". diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 8e8438314..eec1bd726 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1647,7 +1647,7 @@ fhandler_base::setup_overlapped (bool doit) if (doit) { set_overlapped (ov); - res = !!(ov->hEvent = CreateEvent (&sec_none_nih, true, false, NULL)); + res = !!(ov->hEvent = CreateEvent (&sec_none_nih, true, true, NULL)); } else {