]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: console: Re-fix open() failure on exec() by console owner
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 6 Nov 2024 01:19:59 +0000 (10:19 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 6 Nov 2024 08:46:39 +0000 (17:46 +0900)
commit90ddab98780da0e888ff09987d4651107c0f48d6
tree2afe7e9ff5a6ce247ee6aa15bfce156e4eacf80a
parentcbfaeba4f77b98219579b7569604de29e57cc9b9
Cygwin: console: Re-fix open() failure on exec() by console owner

Previous fix (commit df0953aa298c) fixes only a part of the problem.
Since exec() overrides the cygwin pid of the caller process, it makes
console owner handling complex. This patch makes console use Windows
pid as the owner pid (con.owner) instead of cygwin pid to make the
handling simpler.

Fixes: df0953aa298c ("Cygwin: console: Fix open() failure when the console owner calls exec().")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/console.cc
winsup/cygwin/fhandler/pty.cc
winsup/cygwin/fhandler/termios.cc
winsup/cygwin/local_includes/fhandler.h
This page took 0.031754 seconds and 5 git commands to generate.