From 4d0d226d46a54bcf2a379921cd1fca7f6e7fbdac Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 29 Jan 2021 18:08:02 +0100 Subject: Backport a small fix for the sigterm handler --- .../patches/0007-fix-exit-in-signal-handler.patch | 21 +++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/0007-fix-exit-in-signal-handler.patch 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?= +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 -- cgit v1.2.3