diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index b3095bbe3..b286c6c10 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -850,7 +850,9 @@ fhandler_console::process_input_message (void) if (toadd) { ssize_t ret; + release_input_mutex (); line_edit_status res = line_edit (toadd, nread, *ti, &ret); + acquire_input_mutex (INFINITE); if (res == line_edit_signalled) { stat = input_signalled;