Project

General

Profile

Feature #11137 » 0001-lib-drb-.rb-avoid-redundant-fcntl-call.patch

normalperson (Eric Wong), 05/11/2015 09:43 PM

View differences:

lib/drb/drb.rb
require 'socket'
require 'thread'
require 'fcntl'
require 'io/wait'
require 'drb/eq'
......
def set_sockopt(soc) # :nodoc:
soc.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
soc.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC
end
end
lib/drb/unix.rb
end
def set_sockopt(soc)
soc.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC
# no-op for now
end
end
-
(2-2/2)