diff options
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-x | bin/ebuild.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 6843331ed..3ee9be0a6 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -25,19 +25,6 @@ PREROOTPATH=${PREROOTPATH%%:} PATH=$PORTAGE_BIN_PATH/ebuild-helpers:$PREROOTPATH${PREROOTPATH:+:}/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin${ROOTPATH:+:}$ROOTPATH export PATH -if [[ -z $PORTAGE_SETSID && -n $1 && $1 != depend ]] ; then - # If available, use setsid to create a new login session so that we can use - # SIGHUP to ensure that no orphaned subprocesses are left running. - if type -P setsid >/dev/null ; then - export PORTAGE_SETSID=1 - exec setsid "$PORTAGE_BIN_PATH/ebuild.sh" "$@" - elif [[ -x $PORTAGE_BIN_PATH/setsid ]] ; then - export PORTAGE_SETSID=1 - exec "$PORTAGE_BIN_PATH/setsid" "$PORTAGE_BIN_PATH/ebuild.sh" "$@" - fi -fi -[[ $PORTAGE_SETSID = 1 ]] && trap 'trap : SIGHUP ; kill -s SIGHUP 0 ;' EXIT - # These two functions wrap sourcing and calling respectively. At present they # perform a qa check to make sure eclasses and ebuilds and profiles don't mess # with shell opts (shopts). Ebuilds/eclasses changing shopts should reset them |