* sigproc.cc (no_signals_available): Return true if sending to self from the

signal thread.
(wait_sig): Correct so that WaitForSingleObject is called when hMainThread is
!= 0, rather than the reverse.
* cygheap.cc (cygheap_fixup_in_child): Clarify potential error message.
* fork.cc (fork_copy): Cosmetic change.
This commit is contained in:
Christopher Faylor
2005-09-16 01:47:09 +00:00
parent a3a9aac72d
commit 150f3bd168
5 changed files with 16 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ details. */
#define WSSC 60000 // Wait for signal completion
#define WPSP 40000 // Wait for proc_subproc mutex
#define no_signals_available() (!hwait_sig || (myself->exitcode & EXITCODE_SET) && !my_sendsig)
#define no_signals_available() (!hwait_sig || (myself->exitcode & EXITCODE_SET) || !my_sendsig || &_my_tls == _sig_tls)
#define NPROCS 256
@@ -1127,7 +1127,7 @@ wait_sig (VOID *self)
HANDLE h = hMainThread;
my_sendsig = hMainThread = NULL;
DWORD res = h ? WAIT_OBJECT_0 : WaitForSingleObject (h, INFINITE);
DWORD res = !h ? WAIT_OBJECT_0 : WaitForSingleObject (h, INFINITE);
DWORD exitcode = 1;