Commit fd40e02
committed
safe_exec exits the child process directly on execve failure
The child side of safe_exec calls exit(1) after a failed execve, which
can run atexit handlers and flush shared stdio buffers. The comment
notes this should “error instead of exit.”
Updated safe_exec in the audit daemon to terminate failing child
processes with _exit(EXIT_FAILURE) rather than exit(1), preventing
execution of atexit handlers and aligning shutdown behavior with
POSIX recommendations.1 parent 1984f2a commit fd40e02
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1483 | 1483 | | |
1484 | 1484 | | |
1485 | 1485 | | |
1486 | | - | |
| 1486 | + | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| |||
0 commit comments