4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-13 20:49:08 +08:00
Takashi Yano a6ac7b4138 Cygwin: pty: Fix handle leak in master process.
If non-cygwin process is started in pty, closing from_master_nat
pipe handle was missing in fhandler_pty_slave::input_transfer().
This occured because the handle was duplicated but not closed.

https://github.com/msys2/msys2-runtime/issues/198

Fixes: 29431fcb5b14 ("Cygwin: pty: Inherit typeahead data between two input pipes.")
Reported-by: Hakkin Lain
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2024-02-13 23:36:05 +09:00

19 lines
696 B
Groff

Fixes:
------
- Fix exit code for non-cygwin process running in console. The bug
was introduced in 3.5.0.
- Make the interface names handled by if_nametoindex() and if_indextoname()
consistent with that of if_nameindex().
- Revert error handling for non-Cygwin child processes to use Cygwin's
error mode by default. Resetting the error mode to the OS default
error mode is now possible by using the new CYGWIN environment variable
option "winjitdebug".
Addresses: https://cygwin.com/pipermail/cygwin/2024-February/255305.html
- Fix handle leak in pty master which occurs when non-cygwin process
is started in pty.
Addresses: https://github.com/msys2/msys2-runtime/issues/198