diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-23 20:50:36 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-23 20:50:36 +0000 |
commit | 06571ff68904c062879a20b55f4b920e5b959557 (patch) | |
tree | 1113fe52c8481149c862b3a6ed9ba9cb356d5c42 | |
parent | 38a17986453e32c9801da519f0e857e067a46dd7 (diff) | |
download | newlib-06571ff68904c062879a20b55f4b920e5b959557.zip newlib-06571ff68904c062879a20b55f4b920e5b959557.tar.gz newlib-06571ff68904c062879a20b55f4b920e5b959557.tar.bz2 |
* sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and no
processes are available for waiting.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fd45310..3073042 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 23 16:43:33 2000 Christopher Faylor <cgf@cygnus.com> + + * sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and + no processes are available for waiting. + Mon Oct 23 22:27:00 2000 Corinna Vinschen <corinna@vinschen.de> * fhandler.cc (fhandler_base::fcntl): Setting flags in F_SETFL diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 5066955..1d235b6 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); |