Browse Source

net/mwan3: mwan3track 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 8 years ago
parent
commit
7e80e83dfd
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      net/mwan3/files/usr/sbin/mwan3track

+ 2
- 1
net/mwan3/files/usr/sbin/mwan3track View File

@ -115,7 +115,8 @@ main() {
echo "${turn}" > /var/run/mwan3track/$1/TURN
host_up_count=0
sleep $sleep_time
sleep "${sleep_time}" &
wait
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
score=0


Loading…
Cancel
Save