From: Paul Hänsch Date: Thu, 21 Nov 2019 00:50:57 +0000 (+0100) Subject: kill program on connection loss X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c232fc5fab2ae7a4ea68737a03c7c4057ef872d6;p=cgilite kill program on connection loss --- 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;