_exit() instead of exit() after failed exec
die() calls exit(), but actually at this point the program could be in a state not allowing this. It's better to call _exit to stop the libc from calling any handlers that might fail at this moment anyway.
This commit is contained in:
1 parent
cd10166b5e
commit
e8914d5d4b
1 file changed
+2
-1
Reference in new issue
Block a user