util: add debug messages to UTI_FdSetCloexec()

This commit is contained in:
Miroslav Lichvar
2019-08-08 17:32:23 +02:00
parent 3038047f9b
commit 622769cdfd
2 changed files with 11 additions and 5 deletions

View File

@@ -187,7 +187,6 @@ open_socket(int domain, int type, int flags)
(socket_flags & SOCK_CLOEXEC) == 0 &&
#endif
!UTI_FdSetCloexec(sock_fd)) {
DEBUG_LOG("Could not set O_CLOEXEC : %s", strerror(errno));
close(sock_fd);
return INVALID_SOCK_FD;
}