From e0c33c583c5b4d2a4661edb6c41d6a60b44dae9d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 17 Oct 2009 22:42:55 -0700 Subject: Fix graceful shutdown handling of Thread* models harder I need better tests for graceful shutdown... --- lib/rainbows/thread_spawn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/thread_spawn.rb') diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index d002c81..fb9ea57 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -55,7 +55,7 @@ module Rainbows end end rescue Object => e - listen_loop_error(e) if LISTENERS.first + listen_loop_error(e) end while LISTENERS.first && master_pid == Process.ppid join_threads(threads.list, worker) end -- cgit v1.2.3-24-ge0c7