]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty: Fix failure to clear switch_to_nat_pipe flag.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 19 Aug 2023 05:10:16 +0000 (14:10 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 19 Aug 2023 05:52:05 +0000 (14:52 +0900)
commit3cfd7896ea51f28e55db4f22cfdfeec2c3011aff
tree5ba2f0167d835b47db40f5a45c8af7571badc086
parent1da39f52c536f17d9fe7c095b723c2bb547bb7cf
Cygwin: pty: Fix failure to clear switch_to_nat_pipe flag.

After the commit fbfea31dd9b9, switch_to_nat_pipe is not cleared
properly when non-cygwin app is terminated in the case where the
pseudo console is disabled. This is because get_winpid_to_hand_over()
sometimes returns PID of cygwin process even though it should return
only PID of non-cygwin process. This patch fixes the issue by adding
a new argument which requests only PID of non-cygwin process to
get_console_process_id().

Fixes: fbfea31dd9b9 ("Cygwin: pty: Avoid cutting the branch the pty master is sitting on.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/pty.cc
winsup/cygwin/local_includes/fhandler.h
winsup/cygwin/release/3.4.9 [new file with mode: 0644]
This page took 0.031455 seconds and 5 git commands to generate.