Fix large core dumps from background processes
authorEli Zaretskii <eliz@gnu.org>
Thu, 10 Nov 2022 10:12:56 +0000 (12:12 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 13 May 2023 20:17:27 +0000 (21:17 +0100)
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

Gbp-Pq: Name 0013-Fix-large-core-dumps-from-background-processes.patch

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));
            }