diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-26 17:04:57 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-26 17:15:11 -0800 |
commit | 5eea32764571b721cd1a89cf9ebfa853c621ac9e (patch) | |
tree | 7aae0814fe23d06945b92ee9158b3f02bbd37b4b /test | |
parent | 643994afcdbd4121c0d131a87052cdd17d40e54f (diff) | |
download | unicorn-5eea32764571b721cd1a89cf9ebfa853c621ac9e.tar.gz |
This behavior change also means our grandparent (launched from a controlling terminal or script) will wait until the master process is ready before returning. Thanks to IƱaki Baz Castillo for the initial implementations and inspiration.
Diffstat (limited to 'test')
-rw-r--r-- | test/exec/test_exec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index fc0719b..24ba856 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -805,7 +805,7 @@ EOF exec($unicorn_bin, "-D", "-l#{@addr}:#{@port}", "-c#{ucfg.path}") end pid, status = Process.waitpid2(pid) - assert status.success?, "original process exited successfully" + assert ! status.success?, "original process exited successfully" sleep 1 # can't waitpid on a daemonized process :< assert err.stat.size > 0 end |