diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-27 07:45:28 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-27 07:45:28 +0000 |
commit | 87a38d1a5658938a3540b45ab04cc85a9135c8f0 (patch) | |
tree | 04c39d1f0cc70c061af4daec546addf6df05d851 | |
parent | 3a250fcfb9fcfa0ab3a8105821e670563025faa4 (diff) | |
download | rainbows-87a38d1a5658938a3540b45ab04cc85a9135c8f0.tar.gz |
The worker process may fork before the original process is killed during daemonization.
-rwxr-xr-x | t/t0015-working_directory.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t0015-working_directory.sh b/t/t0015-working_directory.sh index 84fe4cc..16c366f 100755 --- a/t/t0015-working_directory.sh +++ b/t/t0015-working_directory.sh @@ -6,7 +6,7 @@ then fi . ./test-lib.sh -t_plan 5 "config.ru inside alt working_directory" +t_plan 6 "config.ru inside alt working_directory" t_begin "setup and start" && { rainbows_setup @@ -41,6 +41,11 @@ EOF rainbows_wait_start } +t_begin "reload to avoid race condition" && { + kill -HUP $rainbows_pid + test xSTART = x"$(cat $fifo)" +} + t_begin "hit with curl" && { body=$(curl -sSf http://$listen/) } |