summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-09-20 05:35:46 +0000
committerChristopher Faylor <me@cgf.cx>2004-09-20 05:35:46 +0000
commit0ae97cf7dd73fdd33d5efed0e5cff7bd63f70fe7 (patch)
treeb67b653b1c8c26fc97d44b18482a86b0879be4f1
parentac652b501a9608a3e08e55d0b709da004360d842 (diff)
downloadcygnal-0ae97cf7dd73fdd33d5efed0e5cff7bd63f70fe7.tar.gz
cygnal-0ae97cf7dd73fdd33d5efed0e5cff7bd63f70fe7.tar.bz2
cygnal-0ae97cf7dd73fdd33d5efed0e5cff7bd63f70fe7.zip
* exceptions.cc (sig_handle_tty_stop): Set flag earlier.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/exceptions.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 03f4c3537..9627b7893 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2004-09-20 Christopher Faylor <cgf@timesys.com>
+ * exceptions.cc (sig_handle_tty_stop): Set flag earlier.
+
+2004-09-20 Christopher Faylor <cgf@timesys.com>
+
* exceptions.cc (sig_handle_tty_stop): Set flag that we are in a cygwin
function to avoid a probably erroneous stack walk.
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 7f76ad5bc..510f5347e 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -593,6 +593,7 @@ extern "C" {
static void
sig_handle_tty_stop (int sig)
{
+ _my_tls.incyg = 1;
/* Silently ignore attempts to suspend if there is no accommodating
cygwin parent to deal with this behavior. */
if (!myself->ppid_handle)
@@ -623,7 +624,6 @@ sig_handle_tty_stop (int sig)
HANDLE w4[2];
w4[0] = sigCONT;
w4[1] = signal_arrived;
- _my_tls.incyg = 1;
switch (WaitForMultipleObjects (2, w4, TRUE, INFINITE))
{
case WAIT_OBJECT_0: