nghttpx: Use _Exit() instead of exit() when execve is failed in child process
This commit is contained in:
parent
0c7e2fbec6
commit
9ad2c0887e
|
@ -435,7 +435,7 @@ void exec_binary_signal_cb(evutil_socket_t sig, short events, void *arg)
|
|||
if(execve(argv[0], argv, envp) == -1) {
|
||||
auto error = errno;
|
||||
LOG(ERROR) << "execve failed: errno=" << error;
|
||||
exit(1);
|
||||
_Exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue