projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f2b80e
)
luci-mod-status: use -w flag when dumping iptables
author
Jo-Philipp Wich
<jo@mein.io>
Sun, 2 Dec 2018 13:29:53 +0000
(14:29 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Sun, 2 Dec 2018 13:30:51 +0000
(14:30 +0100)
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>
modules/luci-mod-status/luasrc/controller/admin/status.lua
patch
|
blob
|
history
diff --git
a/modules/luci-mod-status/luasrc/controller/admin/status.lua
b/modules/luci-mod-status/luasrc/controller/admin/status.lua
index 5b496d83f2375e42e5808f1b9d78a9b94dd1908d..63b939077574796077b53cdf2bd41ad69da91f68 100644
(file)
--- 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