mwan3: mwan3rtmon interrupt sleep on signal (trap) event

Sleep will be aborted if a signal is send to this process.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2019-01-14 08:24:27 +01:00
parent 10cadcb2af
commit 46b2593ce4

View file

@ -25,7 +25,8 @@ main() {
sleep 3
while mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6; do
[ "$rtmon_interval" = "0" ] && break
sleep $rtmon_interval
sleep "$rtmon_interval" &
wait
done
}