[Privoxy-commits] [privoxy] 31/38: run-privoxy-tests.sh: Kill the whole process group if Privoxy doesn't start up in time
User Git
git at git.privoxy.org
Thu Apr 9 09:37:29 CEST 2026
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 504df3a2883fe76c72443d756fc474e5d805a1b9
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Apr 3 20:25:44 2026 +0200
run-privoxy-tests.sh: Kill the whole process group if Privoxy doesn't start up in time
On my system this prevents hangs when the system is heavily
loaded, run-privoxy-test.sh's output is piped into tee(1)
and Privoxy starts up after the the script checks for it,
but before it exits.
---
tests/cts/run-privoxy-tests.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/cts/run-privoxy-tests.sh b/tests/cts/run-privoxy-tests.sh
index 2cc15d9c..c3d16636 100755
--- a/tests/cts/run-privoxy-tests.sh
+++ b/tests/cts/run-privoxy-tests.sh
@@ -61,7 +61,9 @@ start_privoxy() {
if [ -f "${log_file}" ]; then
tail -n 1 "${log_file}"
fi
- exit 1
+ # Kill the whole process group including Privoxy
+ # if it started after the PID file was checked.
+ kill -- -$$
fi
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list