git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
dd206b7
)
mwan3: lock critical section on mwan3 down
author
Florian Eckert
<redacted>
Tue, 15 Jan 2019 09:22:21 +0000
(10:22 +0100)
committer
Florian Eckert
<redacted>
Tue, 22 Jan 2019 13:29:01 +0000
(14:29 +0100)
Signed-off-by: Florian Eckert <redacted>
net/mwan3/files/usr/sbin/mwan3
patch
|
blob
|
history
diff --git
a/net/mwan3/files/usr/sbin/mwan3
b/net/mwan3/files/usr/sbin/mwan3
index 6aee3db0c0bc68cbb037b829332641dfb3f65621..fa8f0a4d503db5356e73efe6dbaafbf9c8fde76c 100755
(executable)
--- a/
net/mwan3/files/usr/sbin/mwan3
+++ b/
net/mwan3/files/usr/sbin/mwan3
@@
-136,6
+136,8
@@
stop()
{
local ipset route rule table IP IPT pid
+ mwan3_lock
+
for pid in $(pgrep -f "mwan3rtmon"); do
kill -TERM "$pid" > /dev/null 2>&1
sleep 1
@@
-184,6
+186,8
@@
stop()
$IPS -q destroy $ipset
done
+ mwan3_unlock
+
mwan3_lock_clean
rm -rf $MWAN3_STATUS_DIR $MWAN3TRACK_STATUS_DIR
git clone https://git.99rst.org/PROJECT