4 t_plan
5 "Process.detach on forked background process works"
6 t_begin
"setup and startup" && {
9 TEST_FIFO
=$process_detach \
10 unicorn
-E none
-D detach.ru
-c $unicorn_config
14 t_begin
"read detached PID with HTTP/1.0" && {
15 detached_pid
=$
(curl
-0 -sSf http
://$listen/)
16 t_info
"detached_pid=$detached_pid"
19 t_begin
"read background FIFO" && {
20 test xHIHI
= x
"$(cat $process_detach)"
23 t_begin
"killing succeeds" && {
27 t_begin
"check stderr" && check_stderr