From e176d04d45adbb51f6bfa0b5a0352927056f3519 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 10 Nov 2019 13:10:31 +0100 Subject: [PATCH] fix SIGIO hang after compilation --- src/comp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/comp.c b/src/comp.c index cce4f1d6e52..8793f7b856c 100644 --- a/src/comp.c +++ b/src/comp.c @@ -32,6 +32,7 @@ along with GNU Emacs. If not, see . */ #include "window.h" #include "dynlib.h" #include "buffer.h" +#include "blockinput.h" #define DEFAULT_SPEED 2 /* See comp-speed var. */ @@ -3037,6 +3038,7 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, comp_speed); /* Gcc doesn't like being interrupted at all. */ + block_input (); sigset_t oldset; sigset_t blocked; sigemptyset (&blocked); @@ -3081,6 +3083,7 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, SSDATA (out_file)); pthread_sigmask (SIG_SETMASK, &oldset, 0); + unblock_input (); return out_file; } -- 2.39.5