Cygwin: Fix incorrect TTY for non-cygwin process.

- After commit d4045fdbef, the TTY
  displayed by ps command is incorrect if the process is non-cygwin
  process. This patch fixes this issue.
This commit is contained in:
Takashi Yano
2019-09-20 12:04:36 +09:00
committed by Ken Brown
parent aa529d00ea
commit 4186409101
2 changed files with 2 additions and 5 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)
if (!have_execed && ch_spawn.iscygwin ())
proc_subproc (PROC_CLEARWAIT, 1);
sigproc_printf ("armed signal_arrived %p, signal %d",
signal_arrived, si.si_signo);