]>
Commit | Line | Data |
---|---|---|
25379cc3 AM |
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) { |