diff options
author | Eric Wong <e@80x24.org> | 2014-11-20 03:53:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-11-20 20:35:52 +0000 |
commit | ec3db439b001c3413e0d755d9ce6bd707caf88db (patch) | |
tree | 40756df6cf244975e1ba587bebc927910ea2676f /lib | |
parent | d992c14cf0b45aaba89ff5bab86122caf07c48ab (diff) | |
download | yahns-ec3db439b001c3413e0d755d9ce6bd707caf88db.tar.gz |
This barely reduces garbage objects at startup, but less garbage is usually better.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/yahns/server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb index b28e741..1196d2d 100644 --- a/lib/yahns/server.rb +++ b/lib/yahns/server.rb @@ -313,7 +313,7 @@ class Yahns::Server # :nodoc: # because that can completely break the non-blocking one. # Unfortunately, there is no one-off MSG_DONTWAIT-like flag for # accept4(2). - inherited = ENV['YAHNS_FD'].to_s.split(',').map do |fd| + inherited = ENV['YAHNS_FD'].to_s.split(',').map! do |fd| io = Socket.for_fd(fd.to_i) set_server_sockopt(io, sock_opts(io)) @logger.info "inherited addr=#{sock_name(io)} fd=#{fd}" |