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>2000-10-24 00:50:36 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-24 00:50:36 +0400
commit06571ff68904c062879a20b55f4b920e5b959557 (patch)
tree1113fe52c8481149c862b3a6ed9ba9cb356d5c42 /winsup/cygwin/sigproc.cc
parent38a17986453e32c9801da519f0e857e067a46dd7 (diff)
* sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and no
processes are available for waiting.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 50669556a..1d235b635 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -358,7 +358,7 @@ proc_subproc (DWORD what, DWORD val)
w->next->pid = 0;
if (clearing)
w->next->status = -1; /* flag that a signal was received */
- else if (!(w->next->options & WNOHANG))
+ else if (!potential_match || !(w->next->options & WNOHANG))
w->next->ev = NULL;
if (!SetEvent (oldw))
system_printf ("couldn't wake up wait event %p, %E", oldw);