luci-mod-status: use -w flag when dumping iptables

Multiple iptables listing commands might be triggered in parallel due
to the XHR polling, so use the -w flag to wait for the lock to become
free.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-12-02 14:29:53 +01:00
parent 4f2b80e109
commit be2d0536f4

View file

@ -53,7 +53,7 @@ function dump_iptables(family, table)
for s in lines do
if s == table then
local ipt = io.popen(
"/usr/sbin/%stables -t %s --line-numbers -nxvL"
"/usr/sbin/%stables -w -t %s --line-numbers -nxvL"
%{ prefix, table })
if ipt then