From e9216547244c20f771ac81fcf74257e2df8371ef Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Sun, 27 May 2007 02:54:59 +0900 Subject: trap SIGHUP as well as EXIT. --- pbuilder-buildpackage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 0c9b8f1..4121c62 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -52,7 +52,7 @@ export HOME="/tmp/buildd" echobacktime extractbuildplace -trap umountproc_cleanbuildplace exit +trap umountproc_cleanbuildplace exit sighup loadhooks if [ ! -d "${BUILDRESULT}" ]; then @@ -89,10 +89,10 @@ recover_aptcache createbuilduser echo "Installing the build-deps" executehooks "D" -trap saveaptcache_umountproc_cleanbuildplace exit +trap saveaptcache_umountproc_cleanbuildplace exit sighup checkbuilddep "$PACKAGENAME" save_aptcache -trap umountproc_cleanbuildplace exit +trap umountproc_cleanbuildplace exit sighup echo "Copying source file" copydsc "$PACKAGENAME" "$BUILDPLACE/tmp/buildd" @@ -139,7 +139,7 @@ else fi if ! wait ${BUILD_PID}; then - trap umountproc_cleanbuildplace exit + trap umountproc_cleanbuildplace exit sighup eval "${KILL_WAIT_PID}" echo "pbuilder: Failed autobuilding of package" >&2 executehooks "C" @@ -149,10 +149,10 @@ else # build was successful fi -trap umountproc_cleanbuildplace exit +trap umountproc_cleanbuildplace exit sighup executehooks "B" save_aptcache -trap cleanbuildplace exit +trap cleanbuildplace exit sighup umountproc -- cgit v1.2.3