* exceptions.cc (sig_handle_tty_stop): Clear tls sig field.

(sigpacket::process): When continuing, set tls->sig before arming
signal_arrived.
This commit is contained in:
Christopher Faylor 2012-08-17 15:56:05 +00:00
parent 74d1d0ee80
commit 23338be7f5
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-08-17 Christopher Faylor <me.cygwin2012@cgf.cx>
* exceptions.cc (sig_handle_tty_stop): Clear tls sig field.
(sigpacket::process): When continuing, set tls->sig before arming
signal_arrived.
2012-08-17 Thomas Wolff <towo@towo.net>
* fhandler_clipboard.cc (fhandler_dev_clipboard::read): Use

View File

@ -743,6 +743,7 @@ sig_handle_tty_stop (int sig)
switch (res)
{
case WAIT_SIGNALED:
_my_tls.sig = 0;
myself->stopsig = SIGCONT;
myself->alert_parent (SIGCONT);
break;
@ -1242,7 +1243,10 @@ dosig:
done:
if (continue_now)
SetEvent (tls->signal_arrived);
{
tls->sig = SIGCONT;
SetEvent (tls->signal_arrived);
}
sigproc_printf ("returning %d", rc);
return rc;