mwan3: close flock fd when starting mwan3.user scripts
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 29 Jul 2024 07:23:35 +0000 (09:23 +0200)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 29 Oct 2024 07:44:44 +0000 (08:44 +0100)
Fixes deadlock with multiple init script calls

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user

index 0960a2628784b597a1e2eefc5157eb3d5fa44adb..fa7315fa5eca2845a52d77a0185f0e87b62fd2ca 100644 (file)
@@ -20,7 +20,7 @@
        }
 
        [ -x /etc/mwan3.user ] || chmod 755 /etc/mwan3.user
-       env -i ACTION="$ACTION" INTERFACE="$INTERFACE" DEVICE="$DEVICE" /etc/mwan3.user
+       env -i ACTION="$ACTION" INTERFACE="$INTERFACE" DEVICE="$DEVICE" /etc/mwan3.user 1000>&-
 }
 
 exit 0