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…
Reference in New Issue