* exceptions.cc (sig_handle_tty_stop): Ignore attempts to suspend a process if

started by non-cygwin parent.
This commit is contained in:
Christopher Faylor 2001-03-02 02:09:40 +00:00
parent d80999a1c4
commit 903c330dbe
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 1 21:06:07 2001 Christopher Faylor <cgf@cygnus.com>
* 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 <cgf@cygnus.com>
* select.cc (peek_console): Don't report read_ready on mouse events

View File

@ -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