about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-05 08:46:40 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-05 08:46:40 +0000
commit723ca7b440b1cf161d999aedcfadba8498adaa7c (patch)
treee3759f7c4fe90d534ef922275909dc50ac63b8a7 /lib/rainbows/http_server.rb
parent7246d2f2d1601dbb5486ce7f9ddbebd1bb975b58 (diff)
downloadrainbows-723ca7b440b1cf161d999aedcfadba8498adaa7c.tar.gz
Ugh, I need to think of a way to clean this up...
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r--lib/rainbows/http_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 236c379..71ed192 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -43,7 +43,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
 
   def ready_pipe=(v)
     # hacky hook got force Rainbows! to load modules only in workers
-    if @master_pid && @master_pid == Process.ppid
+    if defined?(@master_pid) && @master_pid == Process.ppid
       extend(Rainbows.const_get(@use))
     end
     super