diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-27 19:38:39 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-27 19:38:39 -0800 |
commit | 36888441021fbb0ae0cf724dc4e700d316b4d1bd (patch) | |
tree | 982d3ff0d80d361a1204bd88d57dabf9e21fcf21 /lib/unicorn | |
parent | 5eea32764571b721cd1a89cf9ebfa853c621ac9e (diff) | |
download | unicorn-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')
-rw-r--r-- | lib/unicorn/launcher.rb | 2 |
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 |