Subject: bug#72496: 31.0.50; macOS: freezes without beach ball

From: Eli Zaretskii <[email-masked]>
Date: Tue, 06 Aug 2024 21:04:26 +0300

> From: Gerd Möllmann <[email-masked]>
> Cc: [email-masked]
> Date: Tue, 06 Aug 2024 18:36:39 +0200
> 
> I've tried this
> 
>   (when (fboundp 'ns-app-stop)
>     (defun sigusr1-handler ()
>       (interactive)
>       (message "SIGUSR1 - stop event loop")
>       (ns-app-stop))
>     (keymap-set special-event-map "<sigusr1>" 'sigusr1-handler))
> 
> where ns-app-stop does such a ns_send_appdefined, but that didn't work
> for a reason unknown to me.

Maybe the way SIGUSR1 is handled involves the same event queue that is
botched in this scenario?