From 46b2593ce4a10cd2abc6f0749110b17dcd1b03ad Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 14 Jan 2019 08:24:27 +0100 Subject: [PATCH] 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 --- net/mwan3/files/usr/sbin/mwan3rtmon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mwan3/files/usr/sbin/mwan3rtmon b/net/mwan3/files/usr/sbin/mwan3rtmon index 667d0cc872..afdc96d1a0 100755 --- a/net/mwan3/files/usr/sbin/mwan3rtmon +++ b/net/mwan3/files/usr/sbin/mwan3rtmon @@ -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 } -- 2.30.2