about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-28 09:03:21 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-28 09:03:21 +0000
commitb45bf946545496cf8d69037113533d7a58ce7e20 (patch)
tree5eb0cb07c4b9028e2af7ede48ef115fd88227252 /t
parent5ffc1f81c3f56d17ff3369f7514e978754840c29 (diff)
downloadunicorn-b45bf946545496cf8d69037113533d7a58ce7e20.tar.gz
We need to ensure the old worker is reaped before sending
new requests intended for the new worker.
Diffstat (limited to 't')
-rwxr-xr-xt/t0012-reload-empty-config.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t0012-reload-empty-config.sh b/t/t0012-reload-empty-config.sh
index c18c030..81e1fb3 100755
--- a/t/t0012-reload-empty-config.sh
+++ b/t/t0012-reload-empty-config.sh
@@ -50,7 +50,10 @@ t_begin "reload signal succeeds" && {
         do
                 sleep 1
         done
-
+        while ! grep reaped < $r_err >/dev/null
+        do
+                sleep 1
+        done
         grep 'done reloading' $r_err >/dev/null
 }