]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/thread.c (acquire_global_lock): Fix thinko in last change.
authorEli Zaretskii <eliz@gnu.org>
Fri, 24 Nov 2017 21:11:55 +0000 (23:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 24 Nov 2017 21:11:55 +0000 (23:11 +0200)
src/thread.c

index 1ded8f55f50ab5f45681211fc9fa5004a3e11305..9e799ce47d45c729902ea042d2411f3f76034f9e 100644 (file)
@@ -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);
 }