From 6d2d2bce720d5c455b77f1139d623ccca8a924e8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 10 Sep 2003 17:26:12 +0000 Subject: [PATCH] * exceptions.cc (sig_handle_tty_stop): Check parent PID_NOCLDSTOP rather than erroneously checking *my own* sigtodo. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1bfe052c5..c3419cd1a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-09-10 Christopher Faylor + + * exceptions.cc (sig_handle_tty_stop): Check parent PID_NOCLDSTOP + rather than erroneously checking *my own* sigtodo. + 2003-09-10 Christopher Faylor * Makefile.in: Add some more -fomit-frame-pointer files. diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 3a599f989..8105eb653 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -611,7 +611,7 @@ sig_handle_tty_stop (int sig) if (my_parent_is_alive ()) { pinfo parent (myself->ppid); - if (!(parent->getsig (SIGCHLD).sa_flags & SA_NOCLDSTOP)) + if (NOTSTATE (parent, PID_NOCLDSTOP)) sig_send (parent, SIGCHLD); } sigproc_printf ("process %d stopped by signal %d, myself->ppid_handle %p",