4
0
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:
Takashi Yano 2021-04-21 12:07:31 +09:00 committed by Corinna Vinschen
parent 6004ea977b
commit 6d46d85049

View File

@ -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);