Cygwin: Fix signal handling issue introduced by PTY related change.

- After commit 4186409101, there is a
  regression in signal handling reported in
  https://www.cygwin.com/ml/cygwin/2019-10/msg00010.html. This patch
  fixes the issue.
This commit is contained in:
Takashi Yano 2019-10-03 19:43:37 +09:00 committed by Ken Brown
parent 6061f9c76f
commit df5c79f30c
1 changed files with 1 additions and 1 deletions

View File

@ -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);