diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-02 02:09:40 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-02 02:09:40 +0000 |
commit | 903c330dbefb42989d74cb875056086ef4e3d13f (patch) | |
tree | c750a94ea261b58a6aa3fea98a1b129aedc9572c /winsup/cygwin/exceptions.cc | |
parent | d80999a1c4d99cf8aa9f1a61d992aefa57a7649a (diff) | |
download | newlib-903c330dbefb42989d74cb875056086ef4e3d13f.zip newlib-903c330dbefb42989d74cb875056086ef4e3d13f.tar.gz newlib-903c330dbefb42989d74cb875056086ef4e3d13f.tar.bz2 |
* exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a process if
started by non-cygwin parent.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 7633ea1..532f1d2 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 |