mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 19:40:33 +08:00
Cygwin: pty: Add missing attach_mutex guard.
This commit is contained in:
parent
cc94490f6e
commit
a6d06056e1
@ -3422,6 +3422,7 @@ skip_create:
|
|||||||
HeapFree (GetProcessHeap (), 0, hp);
|
HeapFree (GetProcessHeap (), 0, hp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
acquire_attach_mutex (mutex_timeout);
|
||||||
if (get_ttyp ()->previous_code_page)
|
if (get_ttyp ()->previous_code_page)
|
||||||
SetConsoleCP (get_ttyp ()->previous_code_page);
|
SetConsoleCP (get_ttyp ()->previous_code_page);
|
||||||
if (get_ttyp ()->previous_output_code_page)
|
if (get_ttyp ()->previous_output_code_page)
|
||||||
@ -3452,6 +3453,7 @@ skip_create:
|
|||||||
mode |= DISABLE_NEWLINE_AUTO_RETURN;
|
mode |= DISABLE_NEWLINE_AUTO_RETURN;
|
||||||
SetConsoleMode (hpConOut, mode);
|
SetConsoleMode (hpConOut, mode);
|
||||||
}
|
}
|
||||||
|
release_attach_mutex ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user