From 1de7fdff4ae79049c6e940fc9fb9530f676330a5 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Wed, 1 Mar 2017 00:49:06 +0300 Subject: [PATCH] zdtm/socket-tcp: execute iptables with the -w option to wait the xtables lock ================= Run zdtm/static/socket-tcp-nfconntrack in h ================== Start test Test is SUID ./socket-tcp-nfconntrack --pidfile=socket-tcp-nfconntrack.pid --outfile=socket-tcp-nfconntrack.out Another app is currently holding the xtables lock. Perhaps you want to use the -w option? Makefile:331: recipe for target 'socket-tcp-nfconntrack.pid' failed make: *** [socket-tcp-nfconntrack.pid] Error 1 Reported-by: Mr Travis Signed-off-by: Andrei Vagin --- test/zdtm/static/socket-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm/static/socket-tcp.c b/test/zdtm/static/socket-tcp.c index 3eca8de26..02f4c559b 100644 --- a/test/zdtm/static/socket-tcp.c +++ b/test/zdtm/static/socket-tcp.c @@ -69,7 +69,7 @@ int main(int argc, char **argv) unshare(CLONE_NEWNET); if (system("ip link set up dev lo")) return 1; - if (system("iptables -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT")) + if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT")) return 1; system("iptables -A INPUT -j DROP"); #endif