Browse Source

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>
lilik-openwrt-22.03
Florian Eckert 6 years ago
parent
commit
46b2593ce4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      net/mwan3/files/usr/sbin/mwan3rtmon

+ 2
- 1
net/mwan3/files/usr/sbin/mwan3rtmon 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
}


Loading…
Cancel
Save