summaryrefslogtreecommitdiffstats
path: root/iptables/iptables-apply
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-09-19 15:16:58 +0200
committerFlorian Westphal <fw@strlen.de>2018-09-24 11:24:12 +0200
commitb686594b976ddbfb1809ecfe016784bb53bbe9ac (patch)
treeec703b3472c56a362518abb19c986c2c1c019dd8 /iptables/iptables-apply
parentf175deed204c3d526beb3da964cf6ae91aaf49d1 (diff)
iptables-apply: Replace signal numbers by names
As covscan stated: "Trapping signals by number is not well defined. Prefer signal names." Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/iptables-apply')
-rwxr-xr-xiptables/iptables-apply3
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/iptables-apply b/iptables/iptables-apply
index c7b12d07..819ca4a4 100755
--- a/iptables/iptables-apply
+++ b/iptables/iptables-apply
@@ -123,7 +123,8 @@ done
umask 0700
TMPFILE=$(tempfile -p iptap)
-trap "rm -f $TMPFILE" EXIT 1 2 3 4 5 6 7 8 10 11 12 13 14 15
+trap "rm -f $TMPFILE" EXIT HUP INT QUIT ILL TRAP ABRT BUS \
+ FPE USR1 SEGV USR2 PIPE ALRM TERM
if ! "$SAVE" >"$TMPFILE"; then
if ! grep -q ipt /proc/modules 2>/dev/null; then