nghttpx: Use util::make_socket_closeonexec instead of calling fcntl
This commit is contained in:
parent
a6cf6c00ea
commit
b9174b828e
|
@ -710,7 +710,7 @@ int reopen_log_file(const char *path) {
|
||||||
|
|
||||||
// We get race condition if execve is called at the same time.
|
// We get race condition if execve is called at the same time.
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
make_socket_closeonexec(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // !O_CLOEXEC
|
#endif // !O_CLOEXEC
|
||||||
|
|
Loading…
Reference in New Issue