Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510802 - dev-libs/libcgroup - parse error in /etc/init.d/cgconfig
Summary: dev-libs/libcgroup - parse error in /etc/init.d/cgconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Andreis Vinogradovs ( slepnoga )
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-05-19 20:48 UTC by vinz meier
Modified: 2014-11-17 19:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vinz meier 2014-05-19 20:48:15 UTC
# equery b /etc/init.d/cgconfig
 * Searching for /etc/init.d/cgconfig ... 
dev-libs/libcgroup-0.39_rc1-r1 (/etc/init.d/cgconfig)

in start() of the cgconfig init script, there is a line which is supposed to find a default cgroup

the code ignores that not all lines starting with a wildcard are supposed to be the default cgroup

as a result, all tasks will be put in that cgroup


Reproducible: Always

Steps to Reproduce:
1. echo $(grep -m1 ^\*  /etc/cgrules.conf )
2.
3.
Actual Results:  
*:firefox cpu,cpuset max1cpu

Expected Results:  
(empty line)

the code should read

$(grep -m1 '^\* ' /etc/cgrules.conf )
Comment 1 vinz meier 2014-05-19 21:09:26 UTC
$(grep -m1  '^\*\s' /etc/cgrules.conf )

would probably be safer
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2014-11-17 19:34:54 UTC
Fixed in 0.41