From 517495f85d84cd783a23ef56eced3670f6473a60 Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Fri, 1 Nov 2013 21:08:34 -0700 Subject: ip6tables: Use consistent exit code for EAGAIN As of commit 056564f6a (Add new exit value to indicate concurrency issues), the IPv4 iptables binary returns exit status 4 to indicate that the kernel returned EAGAIN when trying to update a table. But ip6tables still returns exit status 1 under the same circumstances. Update ip6tables to bring it in line with iptables behavior. Signed-off-by: Kevin Cernekee Signed-off-by: Pablo Neira Ayuso --- iptables/ip6tables-standalone.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/ip6tables-standalone.c') diff --git a/iptables/ip6tables-standalone.c b/iptables/ip6tables-standalone.c index 656e08d5..35d2d9a5 100644 --- a/iptables/ip6tables-standalone.c +++ b/iptables/ip6tables-standalone.c @@ -73,6 +73,8 @@ ip6tables_main(int argc, char *argv[]) fprintf(stderr, "ip6tables: %s.\n", ip6tc_strerror(errno)); } + if (errno == EAGAIN) + exit(RESOURCE_PROBLEM); } exit(!ret); -- cgit v1.2.3