mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user