Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 566420

Summary: sys-apps/portage: cgroup cleanup code should re-check cgroup.procs until empty, in case of new forks
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2015-11-21 19:33:57 UTC
For subshell die support (bug 465008), we need to re-check cgroup.procs until it's empty, in case any of the listed process fork before we've had a chance to kill them.
Comment 1 Zac Medico gentoo-dev 2015-11-21 19:53:11 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_566420

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/44fe5595b94cf4a78fc37c50b97cc610
Comment 3 Zac Medico gentoo-dev 2016-03-14 03:58:53 UTC
Fixed in 2.2.26.