Fix large core dumps from background processes
authorEli Zaretskii <eliz@gnu.org>
Thu, 10 Nov 2022 10:12:56 +0000 (12:12 +0200)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 13 Nov 2022 00:04:32 +0000 (17:04 -0700)
This upstream patch has been incorporated to fix the problem:

  Avoid dumping core upon SIGHUP in non-interactive sessions

  * src/emacs.c (terminate_due_to_signal): Don't special-case
  SIGINT.  Patch by Paul Eggert <eggert@cs.ucla.edu>.  (Bug#58956)

Origin: upstream, commit: 25b4cec31d580353995d87fe19ae4dab6e6e37de
Bug: https://debbugs.gnu.org/58956
Bug-Debian: https://bugs.debian.org/1017711
Forwarded: not-needed

src/emacs.c

index 3e75cd3622e92184959b36856d88634d3f4ff8e6..3fb1c45cc44122d1f046831801347d0bcf8fcac4 100644 (file)
@@ -410,9 +410,9 @@ terminate_due_to_signal (int sig, int backtrace_limit)
           if (sig == SIGTERM || sig == SIGHUP || sig == SIGINT)
            {
              /* Avoid abort in shut_down_emacs if we were interrupted
-                by SIGINT in noninteractive usage, as in that case we
-                don't care about the message stack.  */
-             if (sig == SIGINT && noninteractive)
+                in noninteractive usage, as in that case we don't
+                care about the message stack.  */
+             if (noninteractive)
                clear_message_stack ();
              Fkill_emacs (make_fixnum (sig));
            }