mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* exceptions.cc (sig_handle_tty_stop): Set flag earlier.
This commit is contained in:
parent
ac652b501a
commit
0ae97cf7dd
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2004-09-20 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* exceptions.cc (sig_handle_tty_stop): Set flag that we are in a cygwin
|
* exceptions.cc (sig_handle_tty_stop): Set flag that we are in a cygwin
|
||||||
|
@ -593,6 +593,7 @@ extern "C" {
|
|||||||
static void
|
static void
|
||||||
sig_handle_tty_stop (int sig)
|
sig_handle_tty_stop (int sig)
|
||||||
{
|
{
|
||||||
|
_my_tls.incyg = 1;
|
||||||
/* Silently ignore attempts to suspend if there is no accommodating
|
/* Silently ignore attempts to suspend if there is no accommodating
|
||||||
cygwin parent to deal with this behavior. */
|
cygwin parent to deal with this behavior. */
|
||||||
if (!myself->ppid_handle)
|
if (!myself->ppid_handle)
|
||||||
@ -623,7 +624,6 @@ sig_handle_tty_stop (int sig)
|
|||||||
HANDLE w4[2];
|
HANDLE w4[2];
|
||||||
w4[0] = sigCONT;
|
w4[0] = sigCONT;
|
||||||
w4[1] = signal_arrived;
|
w4[1] = signal_arrived;
|
||||||
_my_tls.incyg = 1;
|
|
||||||
switch (WaitForMultipleObjects (2, w4, TRUE, INFINITE))
|
switch (WaitForMultipleObjects (2, w4, TRUE, INFINITE))
|
||||||
{
|
{
|
||||||
case WAIT_OBJECT_0:
|
case WAIT_OBJECT_0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user