]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup: Add default group to cgconfig
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Tue, 16 Dec 2008 17:29:38 +0000 (17:29 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Tue, 16 Dec 2008 17:29:38 +0000 (17:29 +0000)
From: Balbir Singh <balbir@linux.vnet.ibm.com>

As discussed in the previous thread
http://article.gmane.org/gmane.comp.lib.libcg.devel/139, we don't have
the concept of default groups and tasks should be able to return back
to their default group when done.

Here is a fix to the cgconfig script to fix the issue. Please review,
comment on it.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@238 4f4bb910-9a46-0410-90c8-c897d4f1cd53

scripts/init.d/cgconfig

index 58dee656c389b679ab30066a1b2e1b5cd5bd05b8..507320f53c08e7dd475f580ad1538f2eb2c8f806 100644 (file)
@@ -147,7 +147,7 @@ move_all_to_init_class() {
             exit 1
         fi
 
-        for i in `find . -type d`
+        for i in `find . -depth -type d`
         do
             case $i in
             '.')