summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-28 09:03:21 +0000
committerEric Wong <normalperson@yhbt.net>2010-11-16 21:26:33 +0000
commitd41e5364bde413e195df8803845f7232718325a6 (patch)
tree5eb0cb07c4b9028e2af7ede48ef115fd88227252
parent5ffc1f81c3f56d17ff3369f7514e978754840c29 (diff)
We need to ensure the old worker is reaped before sending
new requests intended for the new worker.
(cherry picked from commit b45bf946545496cf8d69037113533d7a58ce7e20)
-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
 }