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:
parent
10cadcb2af
commit
46b2593ce4
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ main() {
|
||||||
sleep 3
|
sleep 3
|
||||||
while mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6; do
|
while mwan3_rtmon_ipv4 || mwan3_rtmon_ipv6; do
|
||||||
[ "$rtmon_interval" = "0" ] && break
|
[ "$rtmon_interval" = "0" ] && break
|
||||||
sleep $rtmon_interval
|
sleep "$rtmon_interval" &
|
||||||
|
wait
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue