public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: console: Make suspending process work properly.
@ 2020-01-13 16:26 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-01-13 16:26 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a6e87f589ae113cc3f947eca7db8c6d8c795e3c2
commit a6e87f589ae113cc3f947eca7db8c6d8c795e3c2
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date: Sun Jan 5 22:25:55 2020 +0900
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.
Diff:
---
winsup/cygwin/fhandler_console.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index b3095bb..b286c6c 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-13 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 16:26 [newlib-cygwin] Cygwin: console: Make suspending process work properly Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).