Commit b9174b82 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Use util::make_socket_closeonexec instead of calling fcntl

parent a6cf6c00
......@@ -710,7 +710,7 @@ int reopen_log_file(const char *path) {
// We get race condition if execve is called at the same time.
if (fd != -1) {
fcntl(fd, F_SETFD, FD_CLOEXEC);
make_socket_closeonexec(fd);
}
#endif // !O_CLOEXEC
......
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