summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc5
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