summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sample/drb/darray.rb3
-rw-r--r--sample/drb/dchats.rb3
-rw-r--r--sample/drb/dhasen.rb3
-rw-r--r--sample/drb/dqueue.rb3
-rw-r--r--sample/drb/drbm.rb3
-rw-r--r--sample/drb/drbssl_s.rb3
-rw-r--r--sample/drb/gw_s.rb3
-rw-r--r--sample/drb/holders.rb3
-rw-r--r--sample/drb/name.rb3
-rw-r--r--sample/drb/ring_echo.rb2
-rw-r--r--sample/drb/speeds.rb4
12 files changed, 17 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index 0aa6a0cce4..83e66666c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jun 28 00:30:19 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * sample/drb/*.rb: using 'DRb.thread.join' instead of 'gets'
+
Sun Jun 27 22:39:51 2004 Kouhei Sutou <kou@cozmixng.org>
* sample/rss/tdiary_plugin/rss-recent.rb: supported Hiki.
diff --git a/sample/drb/darray.rb b/sample/drb/darray.rb
index bee295d278..95ee01ff03 100644
--- a/sample/drb/darray.rb
+++ b/sample/drb/darray.rb
@@ -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
diff --git a/sample/drb/dchats.rb b/sample/drb/dchats.rb
index b3133d1163..012dfeeebe 100644
--- a/sample/drb/dchats.rb
+++ b/sample/drb/dchats.rb
@@ -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
diff --git a/sample/drb/dhasen.rb b/sample/drb/dhasen.rb
index 5dac88853c..fb1724afa3 100644
--- a/sample/drb/dhasen.rb
+++ b/sample/drb/dhasen.rb
@@ -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
diff --git a/sample/drb/dqueue.rb b/sample/drb/dqueue.rb
index 90ec56ce65..a5a43655fd 100644
--- a/sample/drb/dqueue.rb
+++ b/sample/drb/dqueue.rb
@@ -8,6 +8,5 @@ require 'drb/drb'
DRb.start_service(nil, Queue.new)
puts DRb.uri
-puts '[return] to exit'
-gets
+DRb.thread.join
diff --git a/sample/drb/drbm.rb b/sample/drb/drbm.rb
index 37a26cdfa5..74a15a4696 100644
--- a/sample/drb/drbm.rb
+++ b/sample/drb/drbm.rb
@@ -54,6 +54,7 @@ if __FILE__ == $0
puts "#{s1.uri} #{s2.uri}"
- gets
+ s1.thread.join
+ s2.thread.join
end
diff --git a/sample/drb/drbssl_s.rb b/sample/drb/drbssl_s.rb
index 94d02f63cc..4d96f591d4 100644
--- a/sample/drb/drbssl_s.rb
+++ b/sample/drb/drbssl_s.rb
@@ -28,5 +28,4 @@ end
DRb.start_service(here, HelloWorld.new, config)
puts DRb.uri
-$stdin.gets
-DRb.stop_service
+DRb.thread.join
diff --git a/sample/drb/gw_s.rb b/sample/drb/gw_s.rb
index f91249b3e0..c2bea0baad 100644
--- a/sample/drb/gw_s.rb
+++ b/sample/drb/gw_s.rb
@@ -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
diff --git a/sample/drb/holders.rb b/sample/drb/holders.rb
index 20939034cd..2d9974f3fc 100644
--- a/sample/drb/holders.rb
+++ b/sample/drb/holders.rb
@@ -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
diff --git a/sample/drb/name.rb b/sample/drb/name.rb
index 461f965c16..86b478fbec 100644
--- a/sample/drb/name.rb
+++ b/sample/drb/name.rb
@@ -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
diff --git a/sample/drb/ring_echo.rb b/sample/drb/ring_echo.rb
index 0fde11b9e9..0633aa839a 100644
--- a/sample/drb/ring_echo.rb
+++ b/sample/drb/ring_echo.rb
@@ -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
diff --git a/sample/drb/speeds.rb b/sample/drb/speeds.rb
index 5dcd02a56b..76b4b29dba 100644
--- a/sample/drb/speeds.rb
+++ b/sample/drb/speeds.rb
@@ -28,6 +28,4 @@ when /^druby:/
DRb.start_service(uri, Foo.new)
end
-puts '[enter] to exit'
-gets
-
+DRb.thread.join