diff options
author | Christopher Faylor <me@cgf.cx> | 2009-06-28 22:23:35 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-06-28 22:23:35 +0400 |
commit | 91000b5d66688fe62926edc72a00f00c9cda30ab (patch) | |
tree | ab91f851af48612503d3ac3e46353508bcce27b8 /winsup/cygwin/fhandler.cc | |
parent | d0880d6200dc27d472c5151020f48078aae552a5 (diff) |
* gendef (cleanup): Rename from 'nocr'. Remove comments and trailing spaces.
* cygwin.din: Add long-needed comment describing what dll_crt0__FP11per_process
demangles to.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index b8aa0dd80..da656ce28 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1652,7 +1652,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 { @@ -1758,12 +1758,6 @@ fhandler_base::wait_overlapped (bool inres, bool writing, DWORD *bytes, DWORD le debug_printf ("EOF"); } - /* Make sure the event is unsignalled (this is a potential race in a multi-threaded - app. Sigh.). Must do this after WFMO and GetOverlappedResult or suffer - occasional sporadic problems: - http://cygwin.com/ml/cygwin/2008-08/msg00511.html */ - if (err != ERROR_IO_PENDING) - ResetEvent (get_overlapped ()->hEvent); if (writing && (err == ERROR_NO_DATA || err == ERROR_BROKEN_PIPE)) raise (SIGPIPE); return res; |