fd_util: added missing NONBLOCK fallback for socket()
This commit is contained in:
@ -180,8 +180,10 @@ socket_cloexec_nonblock(int domain, int type, int protocol)
|
||||
#endif
|
||||
|
||||
fd = socket(domain, type, protocol);
|
||||
if (fd >= 0)
|
||||
if (fd >= 0) {
|
||||
fd_set_cloexec(fd, true);
|
||||
fd_set_nonblock(fd);
|
||||
}
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user