From 903c330dbefb42989d74cb875056086ef4e3d13f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 2 Mar 2001 02:09:40 +0000 Subject: [PATCH] * exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a process if started by non-cygwin parent. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d7c02ee8f..eb5731352 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 1 21:06:07 2001 Christopher Faylor + + * exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a + process if started by non-cygwin parent. + Thu Mar 1 20:48:11 2001 Christopher Faylor * select.cc (peek_console): Don't report read_ready on mouse events diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 7633ea143..532f1d2aa 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -589,6 +589,10 @@ extern "C" { static void 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->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