aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-01-29 18:08:02 +0100
committerDaniel Lange <DLange@git.local>2021-01-29 18:08:02 +0100
commit4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac (patch)
tree2a3539a247cafff40fb191567e70a3ed0bbdaead
parentb3648656a02006d3b231d905e36f11cba17f9c19 (diff)
downloaddebian_htop-4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac.tar.gz
debian_htop-4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac.tar.bz2
debian_htop-4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac.zip
Backport a small fix for the sigterm handler
-rw-r--r--debian/patches/0007-fix-exit-in-signal-handler.patch21
-rw-r--r--debian/patches/series1
2 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/0007-fix-exit-in-signal-handler.patch b/debian/patches/0007-fix-exit-in-signal-handler.patch
new file mode 100644
index 0000000..b341d19
--- /dev/null
+++ b/debian/patches/0007-fix-exit-in-signal-handler.patch
@@ -0,0 +1,21 @@
+Backport of bd694c0ce60a60e29dc4ae22923f251fbd196332
+From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
+Date: Fri, 29 Jan 2021 12:38:30 +0100
+Subject: [PATCH] Do not call exit(3) in signal handler
+
+Call safe _exit(2) instead
+---
+ CRT.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CRT.c
++++ b/CRT.c
+@@ -621,7 +621,7 @@
+ static void CRT_handleSIGTERM(int sgn) {
+ (void) sgn;
+ CRT_done();
+- exit(0);
++ _exit(0);
+ }
+
+ #ifdef HAVE_SETUID_ENABLED
diff --git a/debian/patches/series b/debian/patches/series
index 8741e28..c9c95ae 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
0004-fix-kfreebsd-build.patch
0005-fix-sorting.patch
0006-fix-infoscreen-mouse.patch
+0007-fix-exit-in-signal-handler.patch

© 2014-2024 Faster IT GmbH | imprint | privacy policy