diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2022-03-18 23:28:36 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2022-03-18 23:28:36 +0900 |
commit | 8d3271b7fa4ceed4825ce125123b75447ef18d53 (patch) | |
tree | 705fbd6e2dadce02bf981dbc6a7ddae9864f8f77 | |
parent | fcb182387a23d59ad85896e9a92bab9bca37adec (diff) | |
download | newlib-8d3271b7fa4ceed4825ce125123b75447ef18d53.zip newlib-8d3271b7fa4ceed4825ce125123b75447ef18d53.tar.gz newlib-8d3271b7fa4ceed4825ce125123b75447ef18d53.tar.bz2 |
Cygwin: console: Add attach_mutex guard that was not added.
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index b92d758..68248d1 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -362,7 +362,9 @@ remove_record: { if (total_read + j - i >= n) { /* Something is wrong. Giving up. */ + acquire_attach_mutex (mutex_timeout); WriteConsoleInputW (p->input_handle, tmp, n, &n); + release_attach_mutex (); goto skip_writeback; } input_rec[total_read + j - i] = tmp[j]; |