summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-22 10:13:21 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-22 10:13:21 +0000
commit0bd8193eba5139812c18f779ba5831b3c7df01d7 (patch)
treea0ba38c729f36fd60c2b1629b8815dd2a72bc94f /ext
parent31649a24cf9d95a9650462329e7d8a3aa967931c (diff)
ext/socket/init.c (rsock_socket0): non-blocking for non-SOCK_NONBLOCK
We need to make sockets non-blocking for systems without SOCK_CLOEXEC/SOCK_NONBLOCK macros at all. [ruby-core:89965] [Bug #14968] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c
index 24b9b00e15..ba4b084837 100644
--- a/ext/socket/init.c
+++ b/ext/socket/init.c
@@ -481,6 +481,7 @@ rsock_socket0(int domain, int type, int proto)
if (ret == -1)
return -1;
rb_fd_fix_cloexec(ret);
+ rsock_make_fd_nonblock(ret);
return ret;
}