From 0bd8193eba5139812c18f779ba5831b3c7df01d7 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 22 Nov 2018 10:13:21 +0000 Subject: [PATCH] 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 --- ext/socket/init.c | 1 + 1 file changed, 1 insertion(+) 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; }