We set disjoint cpu sets with the following command:

cgset -r cpuset.cpus=0,2 slot1

However, we don't allow commas that as part of the grammar when used
in the configuration file at cgconfig.conf. This patch seeks to
address that.

Signed-off-by: James M Leddy <james.le...@redhat.com>

---
 src/lex.l |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lex.l b/src/lex.l
index a80327c..d590e9f 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -32,7 +32,7 @@ int line_no = 1;
 "perm"         {return PERM;}
 "group"                {return GROUP;}
 "namespace"    {return NAMESPACE;}
-[a-zA-Z0-9_\-\/\.]+ {yylval.name = strdup(yytext); return ID;}
+[a-zA-Z0-9_\-\/\.\,]+ {yylval.name = strdup(yytext); return ID;}
 \"[^"]*\" {yylval.name = strdup(yytext+1); yylval.name[strlen(yylval.name)-1] 
= '\0'; return ID; }
 .      {return yytext[0];}
 %%
-- 
1.7.3.4

-- 
James M. Leddy
Technical Account Manager
Red Hat Inc.


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to