summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2004-02-02 22:36:50 +0000
committerfgsch <fgsch@openbsd.org>2004-02-02 22:36:50 +0000
commit3efbbe3a78ab2d2950913d4697ae732a27c7535c (patch)
treedfbd8e067e56c4f30b9e6c58c54f8947434a4b75
parent* use macro expansion instead of hardcoding 'buf'. (diff)
downloadwireguard-openbsd-3efbbe3a78ab2d2950913d4697ae732a27c7535c.tar.xz
wireguard-openbsd-3efbbe3a78ab2d2950913d4697ae732a27c7535c.zip
trap SIGHUP, SIGINT and SIGTERM as well; input and ok millert@.
-rw-r--r--usr.bin/spell/spell.ksh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/spell/spell.ksh b/usr.bin/spell/spell.ksh
index ba7f577b2e1..00d571356ce 100644
--- a/usr.bin/spell/spell.ksh
+++ b/usr.bin/spell/spell.ksh
@@ -1,6 +1,6 @@
#!/bin/ksh -
#
-# $OpenBSD: spell.ksh,v 1.7 2003/07/10 02:25:38 millert Exp $
+# $OpenBSD: spell.ksh,v 1.8 2004/02/02 22:36:50 fgsch Exp $
#
# Copyright (c) 2001, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
#
@@ -40,7 +40,7 @@ USAGE="usage: spell [-biltvx] [-d list] [-h spellhist] [-s stop] [+extra_list] [
set -o posix # set POSIX mode to prevent +foo in getopts
OPTIND=1 # force getopts to reset itself
-trap "rm -f $TMP $VTMP; exit 0" 0
+trap "rm -f $TMP $VTMP; exit 0" 0 1 2 15
# Use local word/stop lists if they exist
if [ -f $LOCAL_DICT ]; then