From 68fad7a8fc98d41284c4054dd7b53fbb0d990cba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20B=C3=A9rtolo?= Date: Fri, 8 May 2020 16:02:58 -0300 Subject: [PATCH] Do not block SIGIO in platforms that don't have it. * src/comp.c (comp--compile-ctxt-to-file): Add a preprocessor check to avoid blocking SIGIO in platforms that don't have it. Signed-off-by: Andrea Corallo --- src/comp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/comp.c b/src/comp.c index c9426d1990e..87b86ddba7f 100644 --- a/src/comp.c +++ b/src/comp.c @@ -3364,7 +3364,9 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, sigemptyset (&blocked); sigaddset (&blocked, SIGALRM); sigaddset (&blocked, SIGINT); +#ifdef USABLE_SIGIO sigaddset (&blocked, SIGIO); +#endif pthread_sigmask (SIG_BLOCK, &blocked, &oldset); } emit_ctxt_code (); -- 2.39.5