summaryrefslogtreecommitdiff
path: root/usr.bin/mkdep/mkdep.gcc.sh
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-09-02 06:40:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-09-02 06:40:09 +0000
commit67e005471da6102f6302774a602bbaabff53323e (patch)
tree953f805a24cf2c463cd9b2503703aa86457b7a16 /usr.bin/mkdep/mkdep.gcc.sh
parent5a70c6335bcb9f588fabd48ebcc4a733f56b6cb1 (diff)
if trapped, kill self in same way
Diffstat (limited to 'usr.bin/mkdep/mkdep.gcc.sh')
-rw-r--r--usr.bin/mkdep/mkdep.gcc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mkdep/mkdep.gcc.sh b/usr.bin/mkdep/mkdep.gcc.sh
index 17a974b60d0..05b3aa14b52 100644
--- a/usr.bin/mkdep/mkdep.gcc.sh
+++ b/usr.bin/mkdep/mkdep.gcc.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: mkdep.gcc.sh,v 1.7 1997/12/12 09:19:59 deraadt Exp $
+# $OpenBSD: mkdep.gcc.sh,v 1.8 1998/09/02 06:40:07 deraadt Exp $
# $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $
#
# Copyright (c) 1991, 1993
@@ -79,7 +79,7 @@ if ! mkdir $DTMP ; then
fi
umask $um
-trap 'rm -rf $DTMP ; exit 1' 1 2 3 13 15
+trap 'rm -rf $DTMP ; trap 2 ; kill -2 $$' 1 2 3 13 15
if [ x$pflag = x ]; then
${CC:-cc} -M "$@" | sed -e 's; \./; ;g' > $TMP