diff options
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-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 b52ecfc..16850ae 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -361,7 +361,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]; |