From 4c9579fb0d34101ed5db4346b8f8ca71a06b212a Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Mon, 10 Apr 2006 09:57:38 +0000
Subject: [PATCH] cleanup tmp files on exit (so in case exit is called the tmp
 files are also cleaned up).

git-svn-id: http://root.cern.ch/svn/root/trunk@14613 27541ba8-7e3a-0410-8455-c3a389f83636
---
 configure | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 5074d701cf2..74e987cae31 100755
--- a/configure
+++ b/configure
@@ -984,10 +984,12 @@ fi
 #
 ### echo %%% Some clean up
 #
-trap "rm -f Makefile.tmp config.tmp root-config.tmp rootrc.tmp \
-      rootauthrc.tmp rootdaemonrc.tmp memprobe.tmp rootd.tmp \
-      proofd.tmp rootd.xinetd.tmp proofd.xinetd.tmp conftest.mk \
-      conftest.c conftest; exit 1" 1 2 3 15
+trapcmd="rm -f Makefile.tmp config.tmp root-config.tmp rootrc.tmp \
+         rootauthrc.tmp rootdaemonrc.tmp memprobe.tmp rootd.tmp \
+         proofd.tmp rootd.xinetd.tmp proofd.xinetd.tmp conftest.mk \
+         conftest.c conftest"
+trap "$trapcmd; exit 1" 1 2 3 15
+trap "$trapcmd" 0
 
 ######################################################################
 #
-- 
GitLab