Drop SIGTERM handler, causing problems at build time.
authorAdrian Schröter <adrian@suse.de>
Thu, 10 Dec 2009 13:50:13 +0000 (14:50 +0100)
committerAdrian Schröter <adrian@suse.de>
Thu, 10 Dec 2009 13:50:13 +0000 (14:50 +0100)
Actually also SIGHUP trap should go, but this might require a patched ubuntu package.

build

diff --git a/build b/build
index bfd4b57..b585f87 100755 (executable)
--- a/build
+++ b/build
@@ -419,11 +419,11 @@ detect_vm_2nd_stage()
     fi
     if test $$ -eq 1 ; then
        # ignore special init signals if we're init
-       trap '' TERM HUP
+       trap '' HUP
        $0 "$@"
        cleanup_and_exit 1
     fi
-    trap - TERM HUP
+    trap - HUP
     echo "2nd stage started in virtual machine"
     BUILD_ROOT=/
     BUILD_DIR=/.build