; * src/thread.c (acquire_global_lock): Fix thinko in last change.

This commit is contained in:
Eli Zaretskii 2017-11-24 23:11:55 +02:00
parent f300852037
commit 86e6ed8521

View file

@ -101,7 +101,7 @@ acquire_global_lock (struct thread_state *self)
signal handler could have called maybe_reacquire_global_lock, in signal handler could have called maybe_reacquire_global_lock, in
which case we are already holding the lock and shouldn't try which case we are already holding the lock and shouldn't try
taking it again, or else we will hang forever. */ taking it again, or else we will hang forever. */
if (!(self && self->not_holding_lock)) if (!(self && !self->not_holding_lock))
sys_mutex_lock (&global_lock); sys_mutex_lock (&global_lock);
post_acquire_global_lock (self); post_acquire_global_lock (self);
} }