File:  [parser3project] / parser3 / tests / httpd / response-timeout / site / detach.sh
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Oct 29 21:34:13 2026 UTC (3 days, 3 hours ago) by moko
Branches: MAIN
CVS tags: HEAD
$response:timeout httpd tests (related to feature #1312)

#!/bin/sh
# the program leaves its own session and lives on, it must not hold the connection of the request
if command -v setsid >/dev/null 2>&1; then
	setsid sleep 8 >/dev/null 2>&1 </dev/null &
else
	sleep 8 >/dev/null 2>&1 </dev/null & # old systems have no setsid: the program is killed with its group
fi
echo $! >detach.pid

E-mail: