Apply recent exit status changes to trunk

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7775 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep
2007-11-27 17:12:31 +00:00
parent ff82e98c78
commit dd0d55cac8
3 changed files with 39 additions and 20 deletions

View File

@ -115,6 +115,17 @@ run_iptables()
fi
}
#
# Run iptables retrying exit status 4
#
do_iptables()
{
while [ 1 ]; do
$IPTABLES $@
[ $? -ne 4 ] && break
done
}
#
# Run iptables and if an error occurs, stop/restore the firewall
#