summaryrefslogtreecommitdiff
path: root/src/haikufont.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-05-02 01:59:52 +0000
committerPo Lu <luangruo@yahoo.com>2022-05-02 01:59:52 +0000
commitbe3267eb346745d73cfb627c6e962e261a51d6d2 (patch)
treee21456bb9653a70a3d52d23c08a07c2efe94b6b9 /src/haikufont.c
parent48ea81af97b04d507674e06d78c247f868135d48 (diff)
downloademacs-be3267eb346745d73cfb627c6e962e261a51d6d2.tar.gz
Fix race conditions with async input in some Haiku dialogs
* src/haikufns.c (Fhaiku_save_session_reply): * src/haikufont.c (Fx_select_font): Block sigio around system calls.
Diffstat (limited to 'src/haikufont.c')
-rw-r--r--src/haikufont.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/haikufont.c b/src/haikufont.c
index eb00c8ff381..7f676b87274 100644
--- a/src/haikufont.c
+++ b/src/haikufont.c
@@ -1109,10 +1109,12 @@ in the font selection dialog. */)
error ("Trying to use a menu from within a menu-entry");
popup_activated_p++;
+ unrequest_sigio ();
rc = be_select_font (process_pending_signals,
haikufont_should_quit_popup,
&family, &style, &size,
!NILP (exclude_proportional));
+ request_sigio ();
popup_activated_p--;
if (!rc)