]> git.pld-linux.org Git - packages/libcgroup.git/blob - libcgroup-0.36.2-systemd.patch
e1cf0c59bf0a4887222bfebbec1b5427359d795c
[packages/libcgroup.git] / libcgroup-0.36.2-systemd.patch
1 Ignore systemd hierarchy. Quick&dirity fix for bug #627378
2
3 Author: Dhaval Giani <dhaval.bugzilla@thegianis.in>
4
5 @@ -, +, @@ 
6  src/api.c |    8 ++++++++
7  1 file changed, 8 insertions(+)
8 --- libcgroup-0.36.2/src/api.c  
9 +++ libcgroup-0.36.2/src/api.c  
10 @@ -772,6 +772,14 @@ int cgroup_init(void)
11                          * Check if it is a duplicate
12                          */
13                         duplicate = 0;
14 +
15 +                       /*
16 +                        * Ignore anything to do with systemd
17 +                        */
18 +                       if (strncmp(mntopt, "name=systemd",
19 +                                               strlen("name=systemd")) == 0)
20 +                                       continue;
21 +
22                         for (j = 0; j < found_mnt; j++) {
23                                 if (strncmp(mntopt, cg_mount_table[j].name,
24                                                         FILENAME_MAX) == 0) {
This page took 0.056711 seconds and 2 git commands to generate.