aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2019-09-20 12:04:36 +0900
committerKen Brown <kbrown@cornell.edu>2019-09-20 17:48:37 -0400
commit41864091014b63b0cb72ae98281fa53349b6ef77 (patch)
treeb71aff62d09706aa00063f145ea0feb77cc55416 /winsup/cygwin/exceptions.cc
parentaa529d00ea98a2c4f77460df1a4c6a9f97e842cb (diff)
downloadnewlib-41864091014b63b0cb72ae98281fa53349b6ef77.zip
newlib-41864091014b63b0cb72ae98281fa53349b6ef77.tar.gz
newlib-41864091014b63b0cb72ae98281fa53349b6ef77.tar.bz2
Cygwin: Fix incorrect TTY for non-cygwin process.
- After commit d4045fdbef60d8e7e0d11dfe38b048ea2cb8708b, the TTY displayed by ps command is incorrect if the process is non-cygwin process. This patch fixes this issue.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-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 848f9bd..db0fe08 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)
+ if (!have_execed && ch_spawn.iscygwin ())
proc_subproc (PROC_CLEARWAIT, 1);
sigproc_printf ("armed signal_arrived %p, signal %d",
signal_arrived, si.si_signo);