Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 292317 Details for
Bug 390297
sys-apps/openrc: CGroups support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
CGroup Cleanup patch
003-cgroup-cleanup.patch (text/plain), 613 bytes, created by
Patrick Lauer
on 2011-11-12 20:36:35 UTC
(
hide
)
Description:
CGroup Cleanup patch
Filename:
MIME Type:
Creator:
Patrick Lauer
Created:
2011-11-12 20:36:35 UTC
Size:
613 bytes
patch
obsolete
>diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in >index 859cfa8..d1f5e95 100644 >--- a/sh/runscript.sh.in >+++ b/sh/runscript.sh.in >@@ -280,3 +280,15 @@ while [ -n "$1" ]; do > eerror "$RC_SVCNAME: unknown function \`$1'" > exit 1 > done >+ >+# CGroup cleanup >+if [ -d /sys/fs/cgroup/ ]; then >+ # use the svcname unless overriden in conf.d >+ SVC_CGROUP=${CGROUP:-$RC_SVCNAME} >+ # reattach ourself to root cgroup >+ echo $$ > /sys/fs/cgroup//tasks >+ # remove cgroup if empty, will fail if any task attached >+ rmdir /sys/fs/cgroup//${SVC_CGROUP} 2>/dev/null >+fi >+# need to exit cleanly >+exit 0
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 Raw
Actions:
View
Attachments on
bug 390297
:
292315
| 292317