mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-11 13:07:08 +03:00
Do not call exit(3) in signal handler
Call safe _exit(2) instead
This commit is contained in:
parent
fd8c0611af
commit
bd694c0ce6
2
CRT.c
2
CRT.c
@ -651,7 +651,7 @@ ATTR_NORETURN
|
||||
static void CRT_handleSIGTERM(int sgn) {
|
||||
(void) sgn;
|
||||
CRT_done();
|
||||
exit(0);
|
||||
_exit(0);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SETUID_ENABLED
|
||||
|
Loading…
x
Reference in New Issue
Block a user