Do not call exit(3) in signal handler

Call safe _exit(2) instead
This commit is contained in:
Christian Göttsche 2021-01-29 12:38:30 +01:00
parent fd8c0611af
commit bd694c0ce6

2
CRT.c
View File

@ -651,7 +651,7 @@ ATTR_NORETURN
static void CRT_handleSIGTERM(int sgn) {
(void) sgn;
CRT_done();
exit(0);
_exit(0);
}
#ifdef HAVE_SETUID_ENABLED