Commit 9ad2c088 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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

parent 0c7e2fbe
...@@ -435,7 +435,7 @@ void exec_binary_signal_cb(evutil_socket_t sig, short events, void *arg) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment