[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp f4153ca 1/2: * src/comp.c (Fcomp__compile_ctxt_to_fi
From: |
Andrea Corallo |
Subject: |
feature/native-comp f4153ca 1/2: * src/comp.c (Fcomp__compile_ctxt_to_file): Fix sigmask store/restore. |
Date: |
Mon, 21 Dec 2020 02:59:11 -0500 (EST) |
branch: feature/native-comp
commit f4153cac3e0381ea63da2cdccd0ec11c4d54d1ba
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* src/comp.c (Fcomp__compile_ctxt_to_file): Fix sigmask store/restore.
---
src/comp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/comp.c b/src/comp.c
index 139cf86..84a80eb 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4458,7 +4458,6 @@ DEFUN ("comp--compile-ctxt-to-file",
Fcomp__compile_ctxt_to_file,
comp.d_ephemeral_idx =
CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-ephemeral,
Vcomp_ctxt));
- sigset_t oldset;
ptrdiff_t count = 0;
if (!noninteractive)
@@ -4472,7 +4471,7 @@ DEFUN ("comp--compile-ctxt-to-file",
Fcomp__compile_ctxt_to_file,
#ifdef USABLE_SIGIO
sigaddset (&blocked, SIGIO);
#endif
- pthread_sigmask (SIG_BLOCK, &blocked, &oldset);
+ pthread_sigmask (SIG_BLOCK, &blocked, &saved_sigset);
count = SPECPDL_INDEX ();
record_unwind_protect_void (restore_sigmask);
}