Skip to content

Commit

Permalink
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ruby/stdlib/drb/drb.rb
Original file line number Diff line number Diff line change
@@ -1508,7 +1508,7 @@ def stop_service
if Thread.current['DRb'] && Thread.current['DRb']['server'] == self
Thread.current['DRb']['stop_service'] = true
else
if @protocol.respond_to? :dispose
if @protocol.respond_to? :shutdown
@protocol.shutdown
else
@thread.kill # xxx: Thread#kill
2 changes: 1 addition & 1 deletion lib/ruby/stdlib/net/ftp.rb
Original file line number Diff line number Diff line change
@@ -1084,7 +1084,7 @@ def method_missing(mid, *args)
end

class BufferedSocket < BufferedIO
[:addr, :peeraddr, :send, :dispose].each do |method|
[:addr, :peeraddr, :send, :shutdown].each do |method|
define_method(method) { |*args|
@io.__send__(method, *args)
}
2 changes: 1 addition & 1 deletion lib/ruby/truffle/rubysl/rubysl-socket/lib/rubysl/socket.rb
Original file line number Diff line number Diff line change
@@ -313,7 +313,7 @@ class Linger < FFI::Struct

attach_function :accept, [:int, :pointer, :pointer], :int
attach_function :close, [:int], :int
attach_function :dispose, [:int, :int], :int
attach_function :shutdown, [:int, :int], :int
attach_function :listen, [:int, :int], :int
attach_function :socket, [:int, :int, :int], :int
attach_function :send, [:int, :pointer, :size_t, :int], :ssize_t

0 comments on commit 6be2afe

Please sign in to comment.