Commit 1a402542 authored by Max Kellermann's avatar Max Kellermann

fd_util: added missing NONBLOCK fallback for socket()

parent 223b0db5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment