diff options
author | Daniel Lange <DLange@git.local> | 2021-01-29 18:08:02 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-01-29 18:08:02 +0100 |
commit | 4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac (patch) | |
tree | 2a3539a247cafff40fb191567e70a3ed0bbdaead /debian/patches | |
parent | b3648656a02006d3b231d905e36f11cba17f9c19 (diff) | |
download | debian_htop-4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac.tar.gz debian_htop-4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac.tar.bz2 debian_htop-4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac.zip |
Backport a small fix for the sigterm handler
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/0007-fix-exit-in-signal-handler.patch | 21 | ||||
-rw-r--r-- | debian/patches/series | 1 |
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 |