From c232fc5fab2ae7a4ea68737a03c7c4057ef872d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 21 Nov 2019 01:50:57 +0100 Subject: [PATCH] kill program on connection loss --- cgilite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgilite.sh b/cgilite.sh index ae09497..333334c 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -90,7 +90,7 @@ if [ -z "$REQUEST_METHOD" ]; then $CR) printf '%s %s\r\n%s\n%s\n\r\n' \ 'HTTP/1.1' "${cgilite_status%${CR}}" \ "$cgilite_response" "${cgilite_cl}" - cat + cat || kill $$ [ "${cgilite_cl#Connection}" = "${cgilite_cl}" ]; exit;; *) cgilite_response="${cgilite_response:+${cgilite_response}${BR}}${l}";; esac; done || exit 0; -- 2.39.2