aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2019-10-03 19:43:37 +0900
committerKen Brown <kbrown@cornell.edu>2019-10-03 09:28:10 -0400
commitdf5c79f30c3f871b7e0edd6d4629af78b30fca15 (patch)
treec4b527918d6657c9630031bac1b1d84723279fc9
parent6061f9c76f242f851e1d5119e1cbdef683dd0aa4 (diff)
downloadnewlib-df5c79f30c3f871b7e0edd6d4629af78b30fca15.zip
newlib-df5c79f30c3f871b7e0edd6d4629af78b30fca15.tar.gz
newlib-df5c79f30c3f871b7e0edd6d4629af78b30fca15.tar.bz2
Cygwin: Fix signal handling issue introduced by PTY related change.
- After commit 41864091014b63b0cb72ae98281fa53349b6ef77, there is a regression in signal handling reported in https://www.cygwin.com/ml/cygwin/2019-10/msg00010.html. This patch fixes the issue.
-rw-r--r--winsup/cygwin/exceptions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index db0fe08..132fea4 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -949,7 +949,7 @@ _cygtls::interrupt_setup (siginfo_t& si, void *handler, struct sigaction& siga)
if (incyg)
set_signal_arrived ();
- if (!have_execed && ch_spawn.iscygwin ())
+ if (!have_execed && !(myself->exec_sendsig && !ch_spawn.iscygwin ()))
proc_subproc (PROC_CLEARWAIT, 1);
sigproc_printf ("armed signal_arrived %p, signal %d",
signal_arrived, si.si_signo);