nghttpx: Use _Exit() instead of exit() when execve is failed in child process

This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-23 18:15:47 +09:00
parent 0c7e2fbec6
commit 9ad2c0887e
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ void exec_binary_signal_cb(evutil_socket_t sig, short events, void *arg)
if(execve(argv[0], argv, envp) == -1) { if(execve(argv[0], argv, envp) == -1) {
auto error = errno; auto error = errno;
LOG(ERROR) << "execve failed: errno=" << error; LOG(ERROR) << "execve failed: errno=" << error;
exit(1); _Exit(EXIT_FAILURE);
} }
} }
} // namespace } // namespace