diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-05 17:18:05 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-06 14:14:30 -0800 |
commit | 31a93152c8977f31045bd182ae99df4ebd088abf (patch) | |
tree | 5e981f28e1a4e330bd8433b248a124fa07cb580d /lib/rainbows.rb | |
parent | 6bde32081338ce8075854f4c47ce8ca5347df919 (diff) | |
download | rainbows-31a93152c8977f31045bd182ae99df4ebd088abf.tar.gz |
We noticed a few more things that could be cleaned up after the last commit.
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r-- | lib/rainbows.rb | 4 |
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 |