mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
test/socket-tcp: run iptables with -w
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? Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT"))
|
||||
return 1;
|
||||
if (system("iptables -A INPUT -j DROP"))
|
||||
if (system("iptables -w -A INPUT -j DROP"))
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user