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:
Florian Eckert 2017-04-06 16:36:46 +02:00
parent b216fd3642
commit 7e80e83dfd

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