mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
blockcheck: catch HUP to safely handle terminal disconnect
This commit is contained in:
parent
9fcd8f830e
commit
0117374d89
@ -1773,7 +1773,7 @@ sigint_cleanup()
|
|||||||
cleanup
|
cleanup
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
sigpipe()
|
sigsilent()
|
||||||
{
|
{
|
||||||
# must not write anything here to stdout
|
# must not write anything here to stdout
|
||||||
unprepare_all
|
unprepare_all
|
||||||
@ -1795,7 +1795,8 @@ PID=
|
|||||||
NREPORT=
|
NREPORT=
|
||||||
unset WF
|
unset WF
|
||||||
trap sigint INT
|
trap sigint INT
|
||||||
trap sigpipe PIPE
|
trap sigsilent PIPE
|
||||||
|
trap sigsilent HUP
|
||||||
for dom in $DOMAINS; do
|
for dom in $DOMAINS; do
|
||||||
for IPV in $IPVS; do
|
for IPV in $IPVS; do
|
||||||
configure_ip_version
|
configure_ip_version
|
||||||
@ -1809,6 +1810,7 @@ for dom in $DOMAINS; do
|
|||||||
[ "$ENABLE_HTTP3" = 1 ] && check_domain_http3 $dom
|
[ "$ENABLE_HTTP3" = 1 ] && check_domain_http3 $dom
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
trap - HUP
|
||||||
trap - PIPE
|
trap - PIPE
|
||||||
trap - INT
|
trap - INT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user