From 6b7b257250f1adce8a76c640db064d1edb425141 Mon Sep 17 00:00:00 2001 From: cgf Date: Mon, 23 Oct 2000 20:50:36 +0000 Subject: [PATCH] * sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and no processes are available for waiting. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/sigproc.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fd45310550..3073042fb0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 23 16:43:33 2000 Christopher Faylor + + * 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 * fhandler.cc (fhandler_base::fcntl): Setting flags in F_SETFL diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 50669556a1..1d235b6355 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); -- 2.11.0