aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/0007-fix-exit-in-signal-handler.patch
blob: b341d1969747445cd874ebc4e6718b101a22149d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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

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