aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:29:36 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:29:36 +0900
commit7fbaa9928c327998c452c9500f8ae14c1ddfbd39 (patch)
tree2df54e5fd8693957e6c1e2c96da1aa889617bff0 /pbuilder-createbuildenv
parent9d94da70bdec6aac1bcc9747e746f8afabbb962c (diff)
downloadpbuilder-7fbaa9928c327998c452c9500f8ae14c1ddfbd39.tar
pbuilder-7fbaa9928c327998c452c9500f8ae14c1ddfbd39.tar.gz
trap sighup as well as exit: create/update
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index e2cb2d6..313d446 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -81,7 +81,7 @@ executehooks "G"
echo "Refreshing the base.tgz "
echo " -> upgrading packages"
mountproc
-$TRAP umountproc_cleanbuildplace exit
+$TRAP umountproc_cleanbuildplace exit sighup
$CHROOTEXEC /usr/bin/apt-get update
if [ -n "$REMOVEPACKAGES" ]; then
$CHROOTEXEC /usr/bin/dpkg --purge $REMOVEPACKAGES
@@ -96,7 +96,7 @@ unloadhooks
umountproc
$CHROOTEXEC /usr/bin/apt-get clean || true
-$TRAP cleanbuildplace exit
+$TRAP cleanbuildplace exit sighup
# Internal_build_uml is set when --no-targz is set, this code is actually never called from pbuilder-user-mode-linux
if [ ! "${INTERNAL_BUILD_UML}" = "yes" ]; then