public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: console: Add attach_mutex guard that was not added.
@ 2022-03-18 14:30 Takashi Yano
0 siblings, 0 replies; only message in thread
From: Takashi Yano @ 2022-03-18 14:30 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8d3271b7fa4ceed4825ce125123b75447ef18d53
commit 8d3271b7fa4ceed4825ce125123b75447ef18d53
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date: Fri Mar 18 23:28:36 2022 +0900
Cygwin: console: Add attach_mutex guard that was not added.
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 b92d758d1..68248d16c 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];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-18 14:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 14:30 [newlib-cygwin] Cygwin: console: Add attach_mutex guard that was not added Takashi Yano
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).