ruby-changes:53709
From: normal <ko1@a...>
Date: Thu, 22 Nov 2018 19:13:27 +0900 (JST)
Subject: [ruby-changes:53709] normal:r65925 (trunk): ext/socket/init.c (rsock_socket0): non-blocking for non-SOCK_NONBLOCK
normal 2018-11-22 19:13:21 +0900 (Thu, 22 Nov 2018) New Revision: 65925 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65925 Log: 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] Modified files: trunk/ext/socket/init.c Index: ext/socket/init.c =================================================================== --- ext/socket/init.c (revision 65924) +++ ext/socket/init.c (revision 65925) @@ -481,6 +481,7 @@ rsock_socket0(int domain, int type, int https://github.com/ruby/ruby/blob/trunk/ext/socket/init.c#L481 if (ret == -1) return -1; rb_fd_fix_cloexec(ret); + rsock_make_fd_nonblock(ret); return ret; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/