* exceptions.cc (sig_handle_tty_stop): Reset PID_STOPPED if not actually
stopping. * fhandler_console.cc (fhandler_console::fixup_after_fork): Don't set controlling terminal if just inheriting a handle. (fhandler_console::fixup_after_exec): Ditto. * fhandler_tty.cc (fhandler_tty_slave::init): Ditto. * signal.cc (kill_worker): Set appropriate errno if proc_exists determines that process does not really exist.
This commit is contained in:
@ -587,7 +587,10 @@ sig_handle_tty_stop (int sig)
|
||||
/* Silently ignore attempts to suspend if there is no accomodating
|
||||
cygwin parent to deal with this behavior. */
|
||||
if (!myself->ppid_handle)
|
||||
return;
|
||||
{
|
||||
myself->process_state &= ~PID_STOPPED;
|
||||
return;
|
||||
}
|
||||
myself->stopsig = sig;
|
||||
/* See if we have a living parent. If so, send it a special signal.
|
||||
* It will figure out exactly which pid has stopped by scanning
|
||||
|
Reference in New Issue
Block a user