aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-12-21 08:35:30 +0100
committerAndrea Corallo2020-12-21 08:49:13 +0100
commitf4153cac3e0381ea63da2cdccd0ec11c4d54d1ba (patch)
tree3f4bd975be7094aa25cecebbbedebb2e80161cfc /src
parentf244c2190259875d095be8508a959a61339263b8 (diff)
downloademacs-f4153cac3e0381ea63da2cdccd0ec11c4d54d1ba.tar.gz
emacs-f4153cac3e0381ea63da2cdccd0ec11c4d54d1ba.zip
* src/comp.c (Fcomp__compile_ctxt_to_file): Fix sigmask store/restore.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c
index 139cf86c4a0..84a80eba11e 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4458,7 +4458,6 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
4458 comp.d_ephemeral_idx = 4458 comp.d_ephemeral_idx =
4459 CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-ephemeral, Vcomp_ctxt)); 4459 CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-ephemeral, Vcomp_ctxt));
4460 4460
4461 sigset_t oldset;
4462 ptrdiff_t count = 0; 4461 ptrdiff_t count = 0;
4463 4462
4464 if (!noninteractive) 4463 if (!noninteractive)
@@ -4472,7 +4471,7 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
4472#ifdef USABLE_SIGIO 4471#ifdef USABLE_SIGIO
4473 sigaddset (&blocked, SIGIO); 4472 sigaddset (&blocked, SIGIO);
4474#endif 4473#endif
4475 pthread_sigmask (SIG_BLOCK, &blocked, &oldset); 4474 pthread_sigmask (SIG_BLOCK, &blocked, &saved_sigset);
4476 count = SPECPDL_INDEX (); 4475 count = SPECPDL_INDEX ();
4477 record_unwind_protect_void (restore_sigmask); 4476 record_unwind_protect_void (restore_sigmask);
4478 } 4477 }