Fix large core dumps from background processes
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 13 Nov 2022 00:07:14 +0000 (17:07 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 13 Nov 2022 00:30:09 +0000 (17:30 -0700)
Add 0013-Fix-large-core-dumps-from-background-processes.patch to fix
the problem.

Closes: #1017711
1  2 
debian/.git-dpm
debian/patches/0013-Fix-large-core-dumps-from-background-processes.patch
debian/patches/series

diff --cc debian/.git-dpm
index 9b9caeea264faca485d1d3c19f67232d4997de30,0000000000000000000000000000000000000000..4d5f01f34885061ac7de1c0c527f57cc711dcf59
mode 100644,000000..100644
--- /dev/null
@@@ -1,8 -1,0 +1,8 @@@
- 376678555b3b216784b61a0a2f2088f416c4e336
- 376678555b3b216784b61a0a2f2088f416c4e336
 +# see git-dpm(1) from git-dpm package
++d91aca70c4f6837be713fad769d6cbc35f8e531d
++d91aca70c4f6837be713fad769d6cbc35f8e531d
 +279b82e64e15b5e2df3cb522636c6db85a8ee659
 +279b82e64e15b5e2df3cb522636c6db85a8ee659
 +emacs_28.2+1.orig.tar.xz
 +d7f49858bdec2d47110c2ed7b1d0005f157e20c3
 +26988304
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c0029fca06f686e8dde614def106040cc3aaa669
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,37 @@@
++From d91aca70c4f6837be713fad769d6cbc35f8e531d Mon Sep 17 00:00:00 2001
++From: Eli Zaretskii <eliz@gnu.org>
++Date: Thu, 10 Nov 2022 12:12:56 +0200
++Subject: Fix large core dumps from background processes
++
++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 | 6 +++---
++ 1 file changed, 3 insertions(+), 3 deletions(-)
++
++diff --git a/src/emacs.c b/src/emacs.c
++index 3e75cd3622e..3fb1c45cc44 100644
++--- a/src/emacs.c
+++++ b/src/emacs.c
++@@ -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));
++          }
index 5ea4b1d538d2ebfdd912369893cd2c439752db59,0000000000000000000000000000000000000000..a7468f992b6499d5f6a2da52314edc2f76798144
mode 100644,000000..100644
--- /dev/null
@@@ -1,12 -1,0 +1,13 @@@
 +0001-Prefer-usr-share-info-emacs.patch
 +0002-Run-debian-startup-and-set-debian-emacs-flavor.patch
 +0003-Remove-files-that-appear-to-be-incompatible-with-the.patch
 +0004-Adjust-documentation-references-for-Debian.patch
 +0005-Modify-the-output-of-version-to-indicate-Debian-modi.patch
 +0006-Don-t-try-to-build-src-macuvs.h-via-IVD_Sequences.tx.patch
 +0007-Kill-gpg-agent-in-package-test.el-to-avoid-a-race.patch
 +0008-Mark-vc-bzr-test-fauilt-bzr-autoloads-as-unstable-fo.patch
 +0009-pdumper-set-DUMP_RELOC_ALIGNMENT_BITS-1-for-m68k.patch
 +0010-Avoid-fork-bomb-caused-by-native-compilation.patch
 +0011-Avoid-fork-bomb-caused-by-native-compilation-trampol.patch
 +0012-Fix-eln-files-not-being-generated-when-native-comp-a.patch
++0013-Fix-large-core-dumps-from-background-processes.patch