Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 174816 Details for
Bug 250148
emerge freezes after emerging udev
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
prevent ebuild.sh subprocesses from inheriting file descriptor 9
close_pipe.patch (text/plain), 1.20 KB, created by
Zac Medico
on 2008-12-10 01:51:31 UTC
(
hide
)
Description:
prevent ebuild.sh subprocesses from inheriting file descriptor 9
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-12-10 01:51:31 UTC
Size:
1.20 KB
patch
obsolete
>Index: bin/ebuild.sh >=================================================================== >--- bin/ebuild.sh (revision 12188) >+++ bin/ebuild.sh (revision 12189) >@@ -2086,16 +2086,26 @@ > fi > } > >-[[ -n $EBUILD_SH_ARGS ]] && ebuild_main >+if [[ $EBUILD_PHASE = depend ]] ; then >+ ebuild_main >+elif [[ -n $EBUILD_SH_ARGS ]] ; then >+ ( >+ # Don't allow subprocesses to inherit the pipe which >+ # emerge uses to monitor ebuild.sh. >+ exec 9>&- > >-# Save the env only for relevant phases. >-if [ -n "${EBUILD_SH_ARGS}" ] && \ >- ! hasq ${EBUILD_SH_ARGS} clean depend help info nofetch ; then >- # Save current environment and touch a success file. (echo for success) >- umask 002 >- save_ebuild_env | filter_readonly_variables > "${T}/environment" >- chown portage:portage "${T}/environment" &>/dev/null >- chmod g+w "${T}/environment" &>/dev/null >+ ebuild_main >+ >+ # Save the env only for relevant phases. >+ if ! hasq "$EBUILD_SH_ARGS" clean help info nofetch ; then >+ umask 002 >+ save_ebuild_env | filter_readonly_variables > "$T/environment" >+ chown portage:portage "$T/environment" &>/dev/null >+ chmod g+w "$T/environment" &>/dev/null >+ fi >+ exit 0 >+ ) >+ exit $? > fi > > # Do not exit when ebuild.sh is sourced by other scripts.
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 250148
: 174816