From: Michael Schroeder Date: Thu, 10 Dec 2009 15:45:40 +0000 (+0100) Subject: - fix signal handling, cannot use '' as there is no way to reset X-Git-Tag: obs_2.0~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8c54ae10240b9cec3a4398ead4e4a107d23e246;p=tools%2Fobs-build.git - fix signal handling, cannot use '' as there is no way to reset the signal handlers in bash --- diff --git a/build b/build index b585f87..5d3e884 100755 --- a/build +++ b/build @@ -419,11 +419,12 @@ detect_vm_2nd_stage() fi if test $$ -eq 1 ; then # ignore special init signals if we're init - trap '' HUP + # we're using ' ' instead of '' so that the signal handlers + # are reset in the child processes + trap ' ' HUP TERM $0 "$@" cleanup_and_exit 1 fi - trap - HUP echo "2nd stage started in virtual machine" BUILD_ROOT=/ BUILD_DIR=/.build