]> git.eshelyaron.com Git - emacs.git/commitdiff
* Clean-up some signal related dead-code
authorAndrea Corallo <akrl@sdf.org>
Tue, 16 Feb 2021 21:05:06 +0000 (22:05 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 16 Feb 2021 21:12:06 +0000 (22:12 +0100)
* src/comp.c (restore_sigmask): Remove function.
(Fcomp__compile_ctxt_to_file): Remove some dead-code.

src/comp.c

index dae68ddb2bb0e2964241f6b477ad372f286e4993..c9d14958b75f160eff7fea793c981c707ea4da34 100644 (file)
@@ -4331,13 +4331,6 @@ add_driver_options (void)
                            " and above."));
 }
 
-static void
-restore_sigmask (void)
-{
-  pthread_sigmask (SIG_SETMASK, &saved_sigset, 0);
-  unblock_input ();
-}
-
 DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
        Scomp__compile_ctxt_to_file,
        1, 1, 0,
@@ -4385,21 +4378,6 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
 
   ptrdiff_t count = 0;
 
-  if (!noninteractive)
-    {
-      sigset_t blocked;
-      /* Gcc doesn't like being interrupted at all.  */
-      block_input ();
-      sigemptyset (&blocked);
-      sigaddset (&blocked, SIGALRM);
-      sigaddset (&blocked, SIGINT);
-#ifdef USABLE_SIGIO
-      sigaddset (&blocked, SIGIO);
-#endif
-      pthread_sigmask (SIG_BLOCK, &blocked, &saved_sigset);
-      count = SPECPDL_INDEX ();
-      record_unwind_protect_void (restore_sigmask);
-    }
   emit_ctxt_code ();
 
   /* Define inline functions.  */
@@ -4451,9 +4429,6 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
   CALL1I (comp-clean-up-stale-eln, filename);
   CALL2I (comp-delete-or-replace-file, filename, tmp_file);
 
-  if (!noninteractive)
-    unbind_to (count, Qnil);
-
   return filename;
 }