From 056564f6af72376dba0fb616749349fc40bd1d61 Mon Sep 17 00:00:00 2001 From: Jesper Dangaard Brouer Date: Mon, 19 Jun 2006 16:53:03 +0000 Subject: Add new exit value to indicate concurrency issues (Jesper Dangaard Brouer ) --- iptables-standalone.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'iptables-standalone.c') diff --git a/iptables-standalone.c b/iptables-standalone.c index 257b6777..e5c7841d 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -64,9 +64,13 @@ main(int argc, char *argv[]) if (ret) ret = iptc_commit(&handle); - if (!ret) + if (!ret) { fprintf(stderr, "iptables: %s\n", iptc_strerror(errno)); + if (errno == EAGAIN) { + exit(RESOURCE_PROBLEM); + } + } exit(!ret); } -- cgit v1.2.3