From 654e623ce009fc0d430eed044519539e624938cc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 15 Mar 2010 15:46:46 +0000 Subject: [PATCH] * sigproc.cc (no_signals_available): Get sense of the test right for previous botched change. --- 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 757435b3e..24ad6aa8a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-03-15 Christopher Faylor + + * sigproc.cc (no_signals_available): Get sense of the test right for + previous botched change. + 2010-03-15 Christopher Faylor * sigproc.cc (no_signals_available): Don't try to send a signal if diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 35491d30b..cb70568fa 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -33,7 +33,7 @@ details. */ #define WSSC 60000 // Wait for signal completion #define WPSP 40000 // Wait for proc_subproc mutex -#define no_signals_available(x) (!hwait_sig || hwait_sig == INVALID_HANDLE_VALUE || ((x) && myself->exitcode & EXITCODE_SET) || &_my_tls == _sig_tls && cygwin_finished_initializing) +#define no_signals_available(x) (!hwait_sig || (hwait_sig == INVALID_HANDLE_VALUE) || ((x) && myself->exitcode & EXITCODE_SET) || (&_my_tls == _sig_tls) || !cygwin_finished_initializing) #define NPROCS 256