mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: pty: Add missing guard for close_pseudoconsole().
- This patch adds a missing mutex guard for close_pseudoconsole() call when GDB exits.
This commit is contained in:
parent
6004ea977b
commit
6d46d85049
@ -177,7 +177,9 @@ atexit_func (void)
|
||||
input_available_event);
|
||||
ReleaseMutex (ptys->input_mutex);
|
||||
}
|
||||
WaitForSingleObject (ptys->pcon_mutex, INFINITE);
|
||||
ptys->close_pseudoconsole (ttyp, force_switch_to);
|
||||
ReleaseMutex (ptys->pcon_mutex);
|
||||
break;
|
||||
}
|
||||
CloseHandle (h_gdb_process);
|
||||
|
Loading…
x
Reference in New Issue
Block a user