4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 12:59:21 +08:00

Cygwin: pty: Add missing attach_mutex guard.

This commit is contained in:
Takashi Yano 2022-05-09 00:54:35 +09:00
parent cc94490f6e
commit a6d06056e1

View File

@ -3422,6 +3422,7 @@ skip_create:
HeapFree (GetProcessHeap (), 0, hp);
}
acquire_attach_mutex (mutex_timeout);
if (get_ttyp ()->previous_code_page)
SetConsoleCP (get_ttyp ()->previous_code_page);
if (get_ttyp ()->previous_output_code_page)
@ -3452,6 +3453,7 @@ skip_create:
mode |= DISABLE_NEWLINE_AUTO_RETURN;
SetConsoleMode (hpConOut, mode);
}
release_attach_mutex ();
return true;