From 7cf3b655ec6ec6246018018cf773d3433e6075af Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 10 Mar 2001 23:37:50 +0000 Subject: * shortcut.c (PATH_ALL_EXEC): Add parentheses to avoid a compiler warning. * exceptions.cc (setup_handler): Clarify debugging message. * sigproc.cc (proc_subproc): Remove PROC_CHILDSTOPPED test. It is handled by normal PROC_CLEARWAIT case. (wait_sig): Eliminate "dispatched" tracking. Remove __SIGCHILDSTOPPED test. Decrement counter again before jumping out of InterlockedDecrement loop so that subsequent InterlockedIncrement will keep the counter at the correctly decremented value and also detect when there are pending signals. * sigproc.h: Remove __SIGCHILDSTOPPED element. (procstuff): Remove PROC_CHILDSTOPPED element. --- winsup/cygwin/exceptions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index dc5b7fb72..6e1ae4591 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -601,7 +601,7 @@ sig_handle_tty_stop (int sig) if (my_parent_is_alive ()) { pinfo parent (myself->ppid); - sig_send (parent, __SIGCHILDSTOPPED); + sig_send (parent, SIGCHLD); } sigproc_printf ("process %d stopped by signal %d, myself->ppid_handle %p", myself->pid, sig, myself->ppid_handle); @@ -875,7 +875,7 @@ set_pending: LeaveCriticalSection (&th->lock); if (!hth) - sigproc_printf ("didn't suspend main thread, th %p", th); + sigproc_printf ("good. Didn't suspend main thread, th %p", th); else { res = ResumeThread (hth); -- cgit v1.2.3