diff --git a/src/common/os/posix/os_utils.cpp b/src/common/os/posix/os_utils.cpp index a946e3e96d..0763eb9bbf 100644 --- a/src/common/os/posix/os_utils.cpp +++ b/src/common/os/posix/os_utils.cpp @@ -363,7 +363,7 @@ void setCloseOnExec(int fd) { if (fd >= 0) { - while (fcntl(fd, F_SETFD, O_CLOEXEC) < 0 && SYSCALL_INTERRUPTED(errno)) + while (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0 && SYSCALL_INTERRUPTED(errno)) ; } }