summaryrefslogtreecommitdiffstats
path: root/iptables-standalone.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <hawk@comx.dk>2006-06-19 16:53:03 +0000
committerPatrick McHardy <kaber@trash.net>2006-06-19 16:53:03 +0000
commit056564f6af72376dba0fb616749349fc40bd1d61 (patch)
tree0ce9e16c2eb0c8d759ffc784a2fe8ac0e0bd317b /iptables-standalone.c
parent75efcae9764d2117be192a93b25e8810009aabec (diff)
Add new exit value to indicate concurrency issues (Jesper Dangaard Brouer <hawk@comx.dk>)
Diffstat (limited to 'iptables-standalone.c')
-rw-r--r--iptables-standalone.c6
1 files changed, 5 insertions, 1 deletions
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);
}