commit | 056564f6af72376dba0fb616749349fc40bd1d61 | [log] [tgz] |
---|---|---|
author | Jesper Dangaard Brouer <hawk@comx.dk> | Mon Jun 19 16:53:03 2006 +0000 |
committer | Patrick McHardy <kaber@trash.net> | Mon Jun 19 16:53:03 2006 +0000 |
tree | 0ce9e16c2eb0c8d759ffc784a2fe8ac0e0bd317b | |
parent | 75efcae9764d2117be192a93b25e8810009aabec [diff] [blame] |
Add new exit value to indicate concurrency issues (Jesper Dangaard Brouer <hawk@comx.dk>)
diff --git a/iptables-standalone.c b/iptables-standalone.c index 257b677..e5c7841 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c
@@ -64,9 +64,13 @@ 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); }