OSDN Git Service

* sigproc.cc (no_signals_available): Get sense of the test right for previous
authorcgf <cgf>
Mon, 15 Mar 2010 15:46:45 +0000 (15:46 +0000)
committercgf <cgf>
Mon, 15 Mar 2010 15:46:45 +0000 (15:46 +0000)
botched change.

winsup/cygwin/ChangeLog
winsup/cygwin/sigproc.cc

index 757435b..24ad6aa 100644 (file)
@@ -1,5 +1,10 @@
 2010-03-15  Christopher Faylor  <me+cygwin@cgf.cx>
 
+       * sigproc.cc (no_signals_available): Get sense of the test right for
+       previous botched change.
+
+2010-03-15  Christopher Faylor  <me+cygwin@cgf.cx>
+
        * sigproc.cc (no_signals_available): Don't try to send a signal if
        still in cygwin startup code.
 
index 35491d3..cb70568 100644 (file)
@@ -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