aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-23 11:14:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-23 11:14:57 +0200
commit56117d5e053f1fdf2577dc89d7f4aa37faf0d5e3 (patch)
tree5ad97481314b660b898df1e8cc9743719b2d83c9
parent37700d18633ff91ea65efa5ad23e6623ad346690 (diff)
Pass -w (wait) option to iptables
This is now necessary since we may be running multiple instances.
-rw-r--r--bbot/agent/machine.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx
index df23fde..db51e0b 100644
--- a/bbot/agent/machine.cxx
+++ b/bbot/agent/machine.cxx
@@ -47,6 +47,7 @@ namespace bbot
//
e = run_io_exit (t, 0, ofd, ofd,
"sudo", "iptables",
+ "-w", // Wait for xtables lock.
"-t", "nat",
a, "PREROUTING",
"-i", br,
@@ -65,6 +66,7 @@ namespace bbot
//
e = run_io_exit (t, 0, ofd, ofd,
"sudo", "iptables",
+ "-w",
a, "FORWARD",
"-d", addr,
"-o", br,