mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 16:49:45 +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);
|
input_available_event);
|
||||||
ReleaseMutex (ptys->input_mutex);
|
ReleaseMutex (ptys->input_mutex);
|
||||||
}
|
}
|
||||||
|
WaitForSingleObject (ptys->pcon_mutex, INFINITE);
|
||||||
ptys->close_pseudoconsole (ttyp, force_switch_to);
|
ptys->close_pseudoconsole (ttyp, force_switch_to);
|
||||||
|
ReleaseMutex (ptys->pcon_mutex);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
CloseHandle (h_gdb_process);
|
CloseHandle (h_gdb_process);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user