From 67e005471da6102f6302774a602bbaabff53323e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 2 Sep 1998 06:40:09 +0000 Subject: if trapped, kill self in same way --- usr.bin/lorder/lorder.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/lorder/lorder.sh') diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh index 0e081e58498..7a979eba2b9 100644 --- a/usr.bin/lorder/lorder.sh +++ b/usr.bin/lorder/lorder.sh @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: lorder.sh,v 1.7 1997/01/25 21:16:44 deraadt Exp $ +# $OpenBSD: lorder.sh,v 1.8 1998/09/02 06:40:08 deraadt Exp $ # $NetBSD: lorder.sh,v 1.3 1995/04/24 07:38:52 cgd Exp $ # # Copyright (c) 1990, 1993 @@ -60,7 +60,7 @@ fi umask $um # remove temporary files on HUP, INT, QUIT, PIPE, TERM -trap "rm -rf $TDIR; exit 1" 1 2 3 13 15 +trap "rm -rf $TDIR; trap 2 ; kill -2 $$" 1 2 3 13 15 # if the line ends in a colon, assume it's the first occurrence of a new # object file. Echo it twice, just to make sure it gets into the output. -- cgit v1.2.3