diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2022-05-09 00:54:35 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2022-05-09 00:56:21 +0900 |
commit | 7b0d2d1e92f60524b8d93a02282c7d4e9021e9b6 (patch) | |
tree | 490b1c57edac7ba09f46d8bea6c607bc18612c59 /winsup | |
parent | 0f5046ef9f9d48aaaed283e019c20b2265121e69 (diff) | |
download | newlib-7b0d2d1e92f60524b8d93a02282c7d4e9021e9b6.zip newlib-7b0d2d1e92f60524b8d93a02282c7d4e9021e9b6.tar.gz newlib-7b0d2d1e92f60524b8d93a02282c7d4e9021e9b6.tar.bz2 |
Cygwin: pty: Add missing attach_mutex guard.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 31f399f..0cd69f3 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -3497,6 +3497,7 @@ skip_create: HeapFree (GetProcessHeap (), 0, hp); } + acquire_attach_mutex (mutex_timeout); if (get_ttyp ()->previous_code_page) SetConsoleCP (get_ttyp ()->previous_code_page); if (get_ttyp ()->previous_output_code_page) @@ -3527,6 +3528,7 @@ skip_create: mode |= DISABLE_NEWLINE_AUTO_RETURN; SetConsoleMode (hpConOut, mode); } + release_attach_mutex (); return true; |