OSDN Git Service

* fhandler.cc (fhandler_base::setup_overlapped): Revert to starting with handle
authorcgf <cgf>
Fri, 19 Feb 2010 00:07:37 +0000 (00:07 +0000)
committercgf <cgf>
Fri, 19 Feb 2010 00:07:37 +0000 (00:07 +0000)
in signalled state as it seems to fix some hangs.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc

index e99507d..57abafa 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-18  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * 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  <corinna@vinschen.de>
 
        * path.cc (path_conv::check): Treat native DOS paths as "noacl".
index 8e84383..eec1bd7 100644 (file)
@@ -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
     {