1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/webrick
normal 29a914ff2e lib/webrick/utils.rb: simplify by avoiding fcntl
IO#nonblock= and IO#close_on_exec= methods are simpler-to-use
and potentially more portable to for future OSes.
IO#nonblock= and IO#close_on_exec= are also smart enough to avoid
redundantly setting flags so a syscall may be avoided.

These methods could probably be removed entirely and inlined, but
it's unclear if there is 3rd-party code which relies on them.

* lib/webrick/utils.rb (set_non_blocking): use IO#nonblock=
* (set_close_on_exec): use IO#close_on_exec=
  [Feature #11136]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-17 08:22:11 +00:00
..
httpauth
httpservlet
accesslog.rb
cgi.rb
compat.rb
config.rb
cookie.rb
htmlutils.rb
httpauth.rb
httpproxy.rb
httprequest.rb
httpresponse.rb
https.rb
httpserver.rb stdlib: use IO#wait_*able instead of IO.select when possible 2015-05-06 20:30:43 +00:00
httpservlet.rb
httpstatus.rb * lib/webrick/httpstatus.rb: require webrick/accesslog for AccessLog. 2014-11-09 13:29:08 +00:00
httputils.rb
httpversion.rb
log.rb
server.rb lib/webrick/server.rb: avoid redundant fcntl call 2015-05-17 05:59:08 +00:00
ssl.rb * lib/webrick/utils.rb: removed unused argument variable. 2015-01-02 06:53:12 +00:00
utils.rb lib/webrick/utils.rb: simplify by avoiding fcntl 2015-05-17 08:22:11 +00:00
version.rb