* 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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user