diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2019-09-20 12:04:36 +0900 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2019-09-20 17:48:37 -0400 |
commit | 41864091014b63b0cb72ae98281fa53349b6ef77 (patch) | |
tree | b71aff62d09706aa00063f145ea0feb77cc55416 /winsup/cygwin/exceptions.cc | |
parent | aa529d00ea98a2c4f77460df1a4c6a9f97e842cb (diff) | |
download | newlib-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.cc | 2 |
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); |