diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-12-02 14:29:53 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-12-02 14:30:51 +0100 |
commit | be2d0536f4f6083cc0ba77d4e70915164889ca3e (patch) | |
tree | 8577a1a43d05e6384175fd6892c63490338ceac5 /modules/luci-mod-status/luasrc/controller | |
parent | 4f2b80e109031e4e538f09a8beca52cf8e0fd6b5 (diff) |
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>
Diffstat (limited to 'modules/luci-mod-status/luasrc/controller')
-rw-r--r-- | modules/luci-mod-status/luasrc/controller/admin/status.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-status/luasrc/controller/admin/status.lua b/modules/luci-mod-status/luasrc/controller/admin/status.lua index 5b496d83f2..63b9390775 100644 --- a/modules/luci-mod-status/luasrc/controller/admin/status.lua +++ b/modules/luci-mod-status/luasrc/controller/admin/status.lua @@ -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 |