From: Florian Eckert Date: Tue, 8 May 2018 13:42:40 +0000 (+0200) Subject: net/mwan3: remove logging mwan3track pid is not found X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=32931c324bf5f29cc2fe5cfac66fbe660a66f126;p=feed%2Fpackages.git net/mwan3: remove logging mwan3track pid is not found Remove unnecessary logging if mwan3track pid is not found Signed-off-by: Florian Eckert (cherry picked from commit 215708a415fb58acfee28278570df540603a013d) --- diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh index 1c371ea652..74d5592eb7 100644 --- a/net/mwan3/files/lib/mwan3/mwan3.sh +++ b/net/mwan3/files/lib/mwan3/mwan3.sh @@ -492,11 +492,9 @@ mwan3_track_signal() local pid pid="$(pgrep -f "mwan3track $1 $2")" - if [ "${pid}" != "" ]; then + [ "${pid}" != "" ] && { kill -USR1 "${pid}" - else - $LOG warn "Unable to send signal USR1 to mwan3track on interface $1 with pid ${pid}" - fi + } } mwan3_set_policy()