From e58412a2a028e269d8b5149aff8bc8520081d177 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 20 Sep 2004 04:58:36 +0000 Subject: * exceptions.cc (sig_handle_tty_stop): Set flag that we are in a cygwin function to avoid a probably erroneous stack walk. --- winsup/cygwin/exceptions.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 1a065f720..7f76ad5bc 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -593,7 +593,7 @@ extern "C" { static void sig_handle_tty_stop (int sig) { - /* Silently ignore attempts to suspend if there is no accomodating + /* Silently ignore attempts to suspend if there is no accommodating cygwin parent to deal with this behavior. */ if (!myself->ppid_handle) { @@ -623,6 +623,7 @@ 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: @@ -633,6 +634,7 @@ sig_handle_tty_stop (int sig) api_fatal ("WaitSingleObject failed, %E"); break; } + _my_tls.incyg = 0; return; } } -- cgit v1.2.3