Sha256: 834dea91b6b6fecfe7f05bf295ea4787d613a80e33f27bcf35e872dd77cf685f

Contents?: true

Size: 577 Bytes

Versions: 93

Compression:

Stored size: 577 Bytes

Contents

#!/bin/sh
. ./test-lib.sh

t_plan 5 "Process.detach on forked background process works"

t_begin "setup and startup" && {
	t_fifos process_detach
	unicorn_setup
	TEST_FIFO=$process_detach \
	  unicorn -E none -D detach.ru -c $unicorn_config
	unicorn_wait_start
}

t_begin "read detached PID with HTTP/1.0" && {
	detached_pid=$(curl -0 -sSf http://$listen/)
	t_info "detached_pid=$detached_pid"
}

t_begin "read background FIFO" && {
	test xHIHI = x"$(cat $process_detach)"
}

t_begin "killing succeeds" && {
	kill $unicorn_pid
}

t_begin "check stderr" && check_stderr

t_done

Version data entries

93 entries across 93 versions & 12 rubygems

Version Path
unicorn-maintained-6.2.0 t/t0021-process_detach.sh
unicorn-6.1.0 t/t0021-process_detach.sh
unicorn-6.0.0 t/t0021-process_detach.sh
unicorn-5.8.0 t/t0021-process_detach.sh
unicorn-5.7.0 t/t0021-process_detach.sh
unicorn-5.6.0 t/t0021-process_detach.sh
unicorn-5.5.5 t/t0021-process_detach.sh
unicorn-5.5.4 t/t0021-process_detach.sh
unicorn-5.5.3 t/t0021-process_detach.sh
unicorn-5.5.2 t/t0021-process_detach.sh
unicorn-5.5.1 t/t0021-process_detach.sh
unicorn-5.5.0.1.g6836 t/t0021-process_detach.sh
unicorn-5.5.0 t/t0021-process_detach.sh
unicorn-5.5.0.pre1 t/t0021-process_detach.sh
unicorn-5.4.1 t/t0021-process_detach.sh
unicorn-5.4.0 t/t0021-process_detach.sh
unicorn-5.3.1 t/t0021-process_detach.sh
unicorn-shopify-5.3.0 t/t0021-process_detach.sh
unicorn-5.3.0 t/t0021-process_detach.sh
unicorn-5.3.0.pre1 t/t0021-process_detach.sh