nghttpx: Use util::make_socket_closeonexec instead of calling fcntl

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-06 22:03:44 +09:00
parent a6cf6c00ea
commit b9174b828e
1 changed files with 1 additions and 1 deletions

View File

@ -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