From 7e80e83dfdbfd1408244399ef6af580fff218d4f Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 6 Apr 2017 16:36:46 +0200 Subject: [PATCH] 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 --- net/mwan3/files/usr/sbin/mwan3track | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index a5c3a4272..0d7b5ab5d 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -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