mwan3: revert: also cleanup lock on mwan3 stop
authorFlorian Eckert <redacted>
Fri, 24 Jul 2020 06:02:49 +0000 (08:02 +0200)
committerFlorian Eckert <redacted>
Tue, 28 Jul 2020 04:53:24 +0000 (06:53 +0200)
This reverts commit cde2a77ed3b3b0df9e693e121dccdc97ef163156.

Applying this change has shown that it is even quicker to provoke the
race condtition on simultan mwan3 commands execution.
By reversing the change we have the same behaviour as before.

But the race condition on mwan3 execute at the same time still exists.

Signed-off-by: Florian Eckert <redacted>
net/mwan3/files/lib/mwan3/mwan3.sh

index 2ec760f9a9ba99299498eceff422c40618c39c65..ab21ad3b2e22beebc906294e1baa7a3fb36ad861 100644 (file)
@@ -204,13 +204,6 @@ mwan3_unlock() {
 }
 
 mwan3_lock_clean() {
-       for pid in $(pgrep -f "lock /var/run/mwan3.lock"); do
-               kill -TERM "$pid" > /dev/null 2>&1
-       done
-       sleep 1
-       for pid in $(pgrep -f "lock /var/run/mwan3.lock"); do
-               kill -KILL "$pid" > /dev/null 2>&1
-       done
        rm -rf /var/run/mwan3.lock
 }
 
git clone https://git.99rst.org/PROJECT