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>2010-03-15 18:31:32 +0300
committerChristopher Faylor <me@cgf.cx>2010-03-15 18:31:32 +0300
commitd1ef5f33e6bb66a2e85f40c9cbd4c3c5c8106a32 (patch)
tree547fe81efaca54a7c1656d515b5d43e670c55a8b
parent90db0fb0244663fba9dc124a727bd357bc296728 (diff)
* sigproc.cc (no_signals_available): Don't try to send a signal if still in
cygwin startup code.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/sigproc.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c5713914c..757435b3e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2010-03-13 Christopher Faylor <me+cygwin@cgf.cx>
* spinlock.h: New file.
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index e84690320..35491d30b 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)
+#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