mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
Cygwin: console: Add attach_mutex guard that was not added.
This commit is contained in:
parent
fcb182387a
commit
8d3271b7fa
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user