diff options
author | Christopher Faylor <me@cgf.cx> | 2010-03-13 22:34:35 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-03-13 22:34:35 +0300 |
commit | f8af64be8716333f179a1d240ef42fab5188b607 (patch) | |
tree | 75eb82c89d02e0c32f69359dc558c076c7de1137 /winsup/cygwin/sigproc.cc | |
parent | 084ea5108e86738a09288268b186541b0c23920a (diff) |
* spinlock.h: New file.
(spinlock): New class.
* shared.cc: Include spinlock.h.
(memory_init): Use new spinlock methods rather than roll-your-own. Time out
after ten seconds if shared_mem_inited is not initialized.
* sync.h: Update copyright. Remove vanity attribution.
* sigproc.cc (sigproc_terminate): Avoid attempts to kill the signal thread
while we're still initializing or suffer a deadlock.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 9408b0c6d..e84690320 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -494,7 +494,9 @@ sigproc_terminate (exit_states es) { exit_states prior_exit_state = exit_state; exit_state = es; - if (prior_exit_state >= ES_FINAL) + if (!cygwin_finished_initializing) + sigproc_printf ("don't worry about signal thread"); + else if (prior_exit_state >= ES_FINAL) sigproc_printf ("already performed"); else { |