diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-31 23:26:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-31 23:26:19 +0000 |
commit | 5dbc3d1e7919f1ee2058baec9555684ee0babed0 (patch) | |
tree | a0a988169f2bde8a12fb41e7b300c6b465cf0a47 /ext/socket/extconf.rb | |
parent | 24176a8d5d98ea7d1eb3971ffb7fad7f9ccd2adb (diff) | |
download | ruby-5dbc3d1e7919f1ee2058baec9555684ee0babed0.tar.gz |
* ext/socket/init.c (cloexec_accept): new function to use accept4 if
available.
(rsock_s_accept_nonblock): use cloexec_accept.
(accept_blocking): ditto.
* ext/socket/extconf.rb: check accept4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r-- | ext/socket/extconf.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 380b3ecde0..473f89f69e 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -397,6 +397,8 @@ EOF end end +have_func("accept4") + $objs = [ "init.#{$OBJEXT}", "constants.#{$OBJEXT}", |