diff options
author | Christopher Faylor <me@cgf.cx> | 2001-06-16 17:09:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-06-16 17:09:19 +0000 |
commit | 99a5bd2fab6ba7e81ffa3d0709199b75264a3651 (patch) | |
tree | f0fba41311108a8d0f33025cd6bee718e864d055 /winsup/cygwin/exceptions.cc | |
parent | 947ab99ee964fe52e1c02f2d6e63e50bb533fcc0 (diff) | |
download | cygnal-99a5bd2fab6ba7e81ffa3d0709199b75264a3651.tar.gz cygnal-99a5bd2fab6ba7e81ffa3d0709199b75264a3651.tar.bz2 cygnal-99a5bd2fab6ba7e81ffa3d0709199b75264a3651.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 82ba131c2..9ec179bea 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -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 |