about summary refs log tree commit homepage
path: root/lib/unicorn/launcher.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-27 19:38:39 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-27 19:38:39 -0800
commit36888441021fbb0ae0cf724dc4e700d316b4d1bd (patch)
tree982d3ff0d80d361a1204bd88d57dabf9e21fcf21 /lib/unicorn/launcher.rb
parent5eea32764571b721cd1a89cf9ebfa853c621ac9e (diff)
downloadunicorn-36888441021fbb0ae0cf724dc4e700d316b4d1bd.tar.gz
Otherwise the original spawner process may not notice the close
as it's still being shared by workers.  While we're at it, avoid
confusing the original spawner by using readpartial instead of
sysread.
Diffstat (limited to 'lib/unicorn/launcher.rb')
-rw-r--r--lib/unicorn/launcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/launcher.rb b/lib/unicorn/launcher.rb
index 2d6ad97..0ea836b 100644
--- a/lib/unicorn/launcher.rb
+++ b/lib/unicorn/launcher.rb
@@ -42,7 +42,7 @@ class Unicorn::Launcher
 
       if grandparent == $$
         # this will block until HttpServer#join runs (or it dies)
-        master_pid = rd.sysread(16).to_i
+        master_pid = rd.readpartial(16).to_i
         exit!(1) unless master_pid > 1
         exit 0
       else # unicorn master process