diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 15:16:58 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-24 11:24:12 +0200 |
commit | b686594b976ddbfb1809ecfe016784bb53bbe9ac (patch) | |
tree | ec703b3472c56a362518abb19c986c2c1c019dd8 | |
parent | f175deed204c3d526beb3da964cf6ae91aaf49d1 (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>
-rwxr-xr-x | iptables/iptables-apply | 3 |
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 |