* exceptions.cc (_cygtls::signal_exit): Only call myself.exit when when
exit_state indicates that we've visited do_exit. * sync.h (lock_process::lock_process): Use renamed exit_state - ES_PROCESS_LOCKED. * winsup.h: Rename ES_MUTO_SET to ES_PROCESS_LOCKED.
This commit is contained in:
@@ -55,9 +55,9 @@ public:
|
||||
{
|
||||
locker.acquire ();
|
||||
skip_unlock = exiting;
|
||||
if (exiting && exit_state < ES_SET_MUTO)
|
||||
if (exiting && exit_state < ES_PROCESS_LOCKED)
|
||||
{
|
||||
exit_state = ES_SET_MUTO;
|
||||
exit_state = ES_PROCESS_LOCKED;
|
||||
muto::set_exiting_thread ();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user