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>
This commit is contained in:
parent
b216fd3642
commit
7e80e83dfd
1 changed files with 2 additions and 1 deletions
|
@ -115,7 +115,8 @@ main() {
|
||||||
echo "${turn}" > /var/run/mwan3track/$1/TURN
|
echo "${turn}" > /var/run/mwan3track/$1/TURN
|
||||||
|
|
||||||
host_up_count=0
|
host_up_count=0
|
||||||
sleep $sleep_time
|
sleep "${sleep_time}" &
|
||||||
|
wait
|
||||||
|
|
||||||
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
|
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
|
||||||
score=0
|
score=0
|
||||||
|
|
Loading…
Reference in a new issue