diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-05-07 15:40:22 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-05-07 16:32:13 +0900 |
commit | 09ae9f6ee99e2b58dcb17af563f15e8026b773ae (patch) | |
tree | 10c89ae7e4ecc38ae79907d95f3014813b5f651e /newlib/libc/sys/rtems/cpusetalloc.c | |
parent | c5fe019a9a3c6e6cfff4a42d63ce5d0975556b63 (diff) | |
download | newlib-master.zip newlib-master.tar.gz newlib-master.tar.bz2 |
... and restore it when app exits. The commit 0bfd91d57863 has a bug
that the console mode is stored into the shared memory when both:
(1) cygwin process is started from non-cygwin process.
(2) cygwin process started from non-cygwin process exits.
(1) is intended, but (2) is not. Due to (2), the stored console mode
is unexpectedly broken when the cygwin process exits. Then the mode
restored will be not as expected. This causes undesired console mode
in the use case that cygwin and non-cygwin apps are mixed.
With this patch, the console mode will stored only in the case (1).
This is done by putting the code, which stores the console mode, into
fhandler_console::open() rather than fhandler_console::set_input_mode()
and fhandler_console::set_output_mode().
Fixes: 0bfd91d57863 ("Cygwin: console: tty::restore really restores the previous mode")
Reported-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'newlib/libc/sys/rtems/cpusetalloc.c')
0 files changed, 0 insertions, 0 deletions