Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2020-01-05 16:25:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-01-13 19:26:32 +0300
commita6e87f589ae113cc3f947eca7db8c6d8c795e3c2 (patch)
treed88c30dd450bb9d8ae684de0d9013223872f1c8e
parentb3e78186d107c3cf6cabad4fc18ee829f2b279f4 (diff)
Cygwin: console: Make suspending process work properly.
- After commit f4b47827cf87f055687a0c52a3485d42b3e2b941, suspending process by Ctrl-Z does not work in console and results in hang up. This patch fixes the issue.
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 2 insertions, 0 deletions
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;