Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199617 Details for
Bug 278895
detect orphaned processes (sys-devel/gcc:hang during emerging)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make ebuild.sh clean up orphaned processes
cleanup_orphans.patch (text/plain), 2.02 KB, created by
Zac Medico
on 2009-07-30 07:35:46 UTC
(
hide
)
Description:
make ebuild.sh clean up orphaned processes
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-07-30 07:35:46 UTC
Size:
2.02 KB
patch
obsolete
>Index: pym/portage/__init__.py >=================================================================== >--- pym/portage/__init__.py (revision 13855) >+++ pym/portage/__init__.py (revision 13856) >@@ -1048,6 +1048,7 @@ > "EBUILD_PHASE", "EMERGE_FROM", "HOMEPAGE", "INHERITED", "IUSE", > "KEYWORDS", "LICENSE", "PDEPEND", "PF", "PKGUSE", > "PORTAGE_CONFIGROOT", "PORTAGE_IUSE", "PORTAGE_REPO_NAME", >+ "PORTAGE_SETSID", > "PORTAGE_USE", "PROPERTIES", "PROVIDE", "RDEPEND", "RESTRICT", > "ROOT", "SLOT", "SRC_URI" > ] >Index: bin/isolated-functions.sh >=================================================================== >--- bin/isolated-functions.sh (revision 13855) >+++ bin/isolated-functions.sh (revision 13856) >@@ -536,7 +536,8 @@ > 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 \ >Index: bin/ebuild.sh >=================================================================== >--- bin/ebuild.sh (revision 13855) >+++ bin/ebuild.sh (revision 13856) >@@ -71,6 +71,17 @@ > 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 $EBUILD_SH_ARGS && $EBUILD_SH_ARGS != depend ]] ; then >+ if type -P setsid >/dev/null ; then >+ # Use setsid to create a new login session so that we can use SIGHUP >+ # to ensure that no orphaned subprocesses are left running. >+ export PORTAGE_SETSID=1 >+ exec setsid "$PORTAGE_BIN_PATH/ebuild.sh" $EBUILD_SH_ARGS >+ fi >+fi >+trap '[[ $PORTAGE_SETSID = 1 ]] && { trap : SIGHUP ; kill -s SIGHUP 0 ; }' EXIT >+ > source "${PORTAGE_BIN_PATH}/isolated-functions.sh" &>/dev/null > > # Set IMAGE for minimal backward compatibility with
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278895
:
199416
| 199617