projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1344d
)
net/mwan3: remove logging mwan3track pid is not found
author
Florian Eckert
<fe@dev.tdt.de>
Tue, 8 May 2018 13:42:40 +0000
(15:42 +0200)
committer
Hannu Nyman
<hannu.nyman@iki.fi>
Wed, 16 May 2018 13:56:02 +0000
(16:56 +0300)
Remove unnecessary logging if mwan3track pid is not found
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit
215708a415fb58acfee28278570df540603a013d
)
net/mwan3/files/lib/mwan3/mwan3.sh
patch
|
blob
|
history
diff --git
a/net/mwan3/files/lib/mwan3/mwan3.sh
b/net/mwan3/files/lib/mwan3/mwan3.sh
index 1c371ea6525270f6d920487e02bb9186e8e73492..74d5592eb7da22eec0059403ad85074519793d4a 100644
(file)
--- 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()