From ef163d60fa70ee7e1b0df61f98435b2685816410 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Mon, 14 May 2001 14:58:59 +0000 Subject: [PATCH] Trap also SIGHUP and SIGQUIT. Suggested by Jim Bernard & Christos some time ago. --- usr.bin/locate/locate/updatedb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh index ff214121434d..615f925743ee 100644 --- a/usr.bin/locate/locate/updatedb.sh +++ b/usr.bin/locate/locate/updatedb.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: updatedb.sh,v 1.3 2001/03/12 13:29:26 jdolecek Exp $ +# $NetBSD: updatedb.sh,v 1.4 2001/05/14 14:58:59 jdolecek Exp $ # # Copyright (c) 1989, 1993 # The Regents of the University of California. All rights reserved. @@ -48,7 +48,7 @@ FCODES="/var/db/locate.database" # the database PATH="/bin:/usr/bin" FILELIST="$TMPDIR/locate.list.$$" trap 'rm -f $FILELIST' 0 -trap 'rm -f $FILELIST; exit 1' 2 15 +trap 'rm -f $FILELIST; exit 1' 1 2 3 15 # Make a file list and compute common bigrams. # Entries of each directory shall be sorted (find -s).