summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-07-30 07:29:34 +0000
committerZac Medico <zmedico@gentoo.org>2009-07-30 07:29:34 +0000
commit2c448fe6d4182f4b154f941adabfccbdea2936bc (patch)
treee4e42836fdfd6ffea72c0d6aa86fd2da1105f1cc /bin/isolated-functions.sh
parent4928fa94e1f5b247ade11734b432d184a55a322d (diff)
downloadportage-2c448fe6d4182f4b154f941adabfccbdea2936bc.tar.gz
portage-2c448fe6d4182f4b154f941adabfccbdea2936bc.tar.bz2
portage-2c448fe6d4182f4b154f941adabfccbdea2936bc.zip
Bug #278895 - Make ebuild.sh clean up orphaned processes that may have been
left behind by ebuild phases. This works by using setsid to create a new login session for the ebuild.sh process, and `kill -s SIGHUP 0` to send a SIGHUP signal to all processes in the session. The setsid is currently not done on the python side since that would cause the sandbox process in the session, and sandbox produces a warning message if it catches a SIGHUP signal. svn path=/main/trunk/; revision=13856
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 8a7f899b9..8bc6f17fc 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -536,7 +536,8 @@ save_ebuild_env() {
PORTAGE_DEPCACHEDIR PORTAGE_GID PORTAGE_INST_GID \
PORTAGE_INST_UID PORTAGE_LOG_FILE PORTAGE_MASTER_PID \
PORTAGE_QUIET \
- PORTAGE_REPO_NAME PORTAGE_RESTRICT PORTAGE_UPDATE_ENV \
+ PORTAGE_REPO_NAME PORTAGE_RESTRICT \
+ PORTAGE_SETSID PORTAGE_UPDATE_ENV \
PORTAGE_VERBOSE PORTAGE_WORKDIR_MODE PORTDIR \
PORTDIR_OVERLAY ${!PORTAGE_SANDBOX_*} PREROOTPATH \
PROFILE_PATHS PWORKDIR QA_INTERCEPTORS \