Subject: bug#29370: bug#29347: 27.0.50; C-g doesn't quit minibuffer

From: Richard Stallman <[email-masked]>
Date: Sat, 25 Nov 2017 18:16:18 -0500

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  >    block_interrupt_signal (&oldset);
  > -  acquire_global_lock (self);
  > -  self->not_holding_lock = 0;
  > +  /* If we were interrupted by C-g while inside sa->func above, the
  > +     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->not_holding_lock)
  > +    {
  > +      acquire_global_lock (self);
  > +      self->not_holding_lock = 0;
  > +    }
  >    restore_signal_mask (&oldset);

I am running with this patch, and I will report the results.

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Skype: No way! See https://stallman.org/skype.html.