Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-12-10 21:40:20 +0400
committerChristopher Faylor <me@cgf.cx>2011-12-10 21:40:20 +0400
commitdfbab81589fe598f8088f068ae32e2ff74de3a77 (patch)
tree1c9e5ead5a4c43c1aad6abee01a97a21d22afae1 /winsup/cygwin/sigproc.h
parent51d406aaa7e879891806cfb46c48ed9b271f9cdf (diff)
Clarify entry
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r--winsup/cygwin/sigproc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index 66507e6e0..6a8d7aec2 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -91,9 +91,8 @@ cygwait (DWORD n, DWORD howlong, ...)
for (unsigned i = 0; i < n; i++)
w4[i] = va_arg (ap, HANDLE);
w4[n++] = signal_arrived;
- w4[n++] = pthread::get_cancel_event ();
- if (!w4[n - 1])
- n--;
+ if ((w4[n] = pthread::get_cancel_event ()) != NULL)
+ n++;
return WaitForMultipleObjects (n, w4, FALSE, howlong);
}