Feature #11137 » 0001-lib-drb-.rb-avoid-redundant-fcntl-call.patch
| 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
|
||
|
-
|
||
- « Previous
- 1
- 2
- Next »