From: Eli Zaretskii Date: Fri, 24 Nov 2017 21:11:55 +0000 (+0200) Subject: ; * src/thread.c (acquire_global_lock): Fix thinko in last change. X-Git-Tag: emacs-26.0.91~252 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86e6ed8521564105a42ae52851b6bff7e3a12a94;p=emacs.git ; * src/thread.c (acquire_global_lock): Fix thinko in last change. --- diff --git a/src/thread.c b/src/thread.c index 1ded8f55f50..9e799ce47d4 100644 --- a/src/thread.c +++ b/src/thread.c @@ -101,7 +101,7 @@ acquire_global_lock (struct thread_state *self) signal handler could have called maybe_reacquire_global_lock, in which case we are already holding the lock and shouldn't try 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); post_acquire_global_lock (self); }