about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb4
1 files changed, 4 insertions, 0 deletions
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