From 31a93152c8977f31045bd182ae99df4ebd088abf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 5 Jan 2011 17:18:05 -0800 Subject: minor cleanups following state cleanups We noticed a few more things that could be cleaned up after the last commit. --- lib/rainbows.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index ae77dbe..76cb728 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -91,6 +91,10 @@ module Rainbows @alive && @server.master_pid == Process.ppid or quit! end + def self.cur_alive + @alive || @cur > 0 + end + def self.quit! @alive = false Rainbows::HttpParser.quit -- cgit v1.2.3-24-ge0c7