From 5a55683bc62b827b3a0bb7d39587ce68dd993520 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 18 Feb 2010 15:06:06 +0000 Subject: [PATCH] * lib/drb/drb.rb (DRbServer#stop_service): join killed thread to ensure service stops. [ruby-dev:40441] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/drb/drb.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8914c41584..3d71434870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 19 00:04:19 2010 Yusuke Endoh + + * lib/drb/drb.rb (DRbServer#stop_service): join killed thread to + ensure service stops. [ruby-dev:40441] + Thu Feb 18 22:31:15 2010 Yusuke Endoh * math.c (math_atanh): raise ERANGE without calling atanh if absolute diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index a2c11f980d..4712306fe0 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -1394,7 +1394,7 @@ module DRb if Thread.current['DRb'] && Thread.current['DRb']['server'] == self Thread.current['DRb']['stop_service'] = true else - @thread.kill + @thread.kill.join end end