cgconfigparser calls cgroup_init too late, it's necessary to initialize
libcgroup logging earlier in the process, so various messages get visible
to user.

Signed-off-by: Peter Schiffer <pschi...@redhat.com>
---
 src/tools/cgconfig.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tools/cgconfig.c b/src/tools/cgconfig.c
index da4486b..6aeea0f 100644
--- a/src/tools/cgconfig.c
+++ b/src/tools/cgconfig.c
@@ -84,6 +84,8 @@ int main(int argc, char *argv[])
        int filem_change = 0;
        struct cgroup *default_group = NULL;
 
+       cgroup_set_default_logger(-1);
+
        if (argc < 2)
                usage(argv[0]); /* usage() exits */
 


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to