mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
using "DRb.thread.join" instead of "gets"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0131ff249a
commit
a1162d2bf8
12 changed files with 17 additions and 20 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 28 00:35:29 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* sample/drb/*.rb: using 'DRb.thread.join' instead of 'gets'
|
||||
|
||||
Sun Jun 27 22:36:47 2004 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* sample/rss/tdiary_plugin/rss-recent.rb: supported Hiki.
|
||||
|
|
|
@ -8,6 +8,5 @@ require 'drb/drb'
|
|||
here = ARGV.shift
|
||||
DRb.start_service(here, [1, 2, "III", 4, "five", 6])
|
||||
puts DRb.uri
|
||||
puts '[return] to exit'
|
||||
gets
|
||||
DRb.thread.join
|
||||
|
||||
|
|
|
@ -66,6 +66,5 @@ if __FILE__ == $0
|
|||
here = ARGV.shift
|
||||
DRb.start_service(here, ChatServer.new)
|
||||
puts DRb.uri
|
||||
puts '[return] to exit.'
|
||||
gets
|
||||
DRb.thread.join
|
||||
end
|
||||
|
|
|
@ -37,7 +37,6 @@ end
|
|||
if __FILE__ == $0
|
||||
DRb.start_service(nil, Dhasen.new)
|
||||
puts DRb.uri
|
||||
puts '[return] to exit.'
|
||||
gets
|
||||
DRb.thread.join
|
||||
end
|
||||
|
||||
|
|
|
@ -8,6 +8,5 @@ require 'drb/drb'
|
|||
|
||||
DRb.start_service(nil, Queue.new)
|
||||
puts DRb.uri
|
||||
puts '[return] to exit'
|
||||
gets
|
||||
DRb.thread.join
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ if __FILE__ == $0
|
|||
|
||||
puts "#{s1.uri} #{s2.uri}"
|
||||
|
||||
gets
|
||||
s1.thread.join
|
||||
s2.thread.join
|
||||
end
|
||||
|
||||
|
|
|
@ -28,5 +28,4 @@ end
|
|||
|
||||
DRb.start_service(here, HelloWorld.new, config)
|
||||
puts DRb.uri
|
||||
$stdin.gets
|
||||
DRb.stop_service
|
||||
DRb.thread.join
|
||||
|
|
|
@ -6,4 +6,5 @@ DRb.install_id_conv(DRb::GWIdConv.new)
|
|||
gw = DRb::GW.new
|
||||
s1 = DRb::DRbServer.new(ARGV.shift, gw)
|
||||
s2 = DRb::DRbServer.new(ARGV.shift, gw)
|
||||
gets
|
||||
s1.thread.join
|
||||
s2.thread.join
|
||||
|
|
|
@ -59,6 +59,5 @@ if __FILE__ == $0
|
|||
|
||||
DRb.start_service(nil, DRbEx4.new)
|
||||
puts DRb.uri
|
||||
puts '[return] to exit'
|
||||
gets
|
||||
DRb.thread.join
|
||||
end
|
||||
|
|
|
@ -112,7 +112,6 @@ if __FILE__ == $0
|
|||
DRb.install_id_conv(name_conv)
|
||||
DRb.start_service(uri, Front.new)
|
||||
puts DRb.uri
|
||||
puts '[return] to exit'
|
||||
gets
|
||||
DRb.thread.join
|
||||
end
|
||||
|
||||
|
|
|
@ -26,5 +26,5 @@ ts.read_all([:name, :RingEcho, nil, nil]).each do |tuple|
|
|||
end
|
||||
ts.write([:name, :RingEcho, RingEcho.new(DRb.uri), ''], renewer)
|
||||
|
||||
$stdin.gets
|
||||
DRb.thread.join
|
||||
|
||||
|
|
|
@ -28,6 +28,4 @@ when /^druby:/
|
|||
DRb.start_service(uri, Foo.new)
|
||||
end
|
||||
|
||||
puts '[enter] to exit'
|
||||
gets
|
||||
|
||||
DRb.thread.join
|
||||
|
|
Loading…
Reference in a new issue