aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:46:59 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:46:59 +0900
commit70600059722511dcbcdae59a7f57f1fdff8a1f7c (patch)
tree8281eb127612ddadeabb4b25bef90db01798569b /pbuilder-user-mode-linux
parent7fbaa9928c327998c452c9500f8ae14c1ddfbd39 (diff)
downloadpbuilder-70600059722511dcbcdae59a7f57f1fdff8a1f7c.tar
pbuilder-70600059722511dcbcdae59a7f57f1fdff8a1f7c.tar.gz
change "trap" handling so that all trap function calls are called _trap, and they will exit pbuilder after receiving a trap.
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-xpbuilder-user-mode-linux4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux
index ca1a1a4..485b1a8 100755
--- a/pbuilder-user-mode-linux
+++ b/pbuilder-user-mode-linux
@@ -21,7 +21,7 @@
set -e
-function cleanup_function () {
+function cleanup_function_trap () {
rm -f ${INSIDE_PBUILDER}
${EXTRACLEANUP}
}
@@ -51,7 +51,7 @@ function operate_uml () {
# opeartes on UML, and runs pbuilder $1
# use this script file to bootstrap the pbuilder inside the UML
INSIDE_PBUILDER=$(tempfile)
- trap cleanup_function exit sighup
+ trap cleanup_function_trap exit sighup
UML_CHROOT_MOUNTPOINT=/var/cache/pbuilder/pbuilder-mnt
UML_CHROOT_BUILDRESULTMOUNTDIR=/var/cache/pbuilder/pbuilder-umlresult
#The following script is ran inside UML as soon as it is started.