From 29a914ff2ee0fcf4b1a664355c99e4a16e766c9f Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 17 May 2015 08:22:11 +0000 Subject: 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 --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 90b56804df..cece151162 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun May 17 17:21:29 2015 Eric Wong + + * lib/webrick/utils.rb (set_non_blocking): use IO#nonblock= + * (set_close_on_exec): use IO#close_on_exec= + [Feature #11136] + Sun May 17 15:01:26 2015 Nobuyoshi Nakada * numeric.c (num_positive_p, num_negative_p): add methods -- cgit v1.2.3