summaryrefslogtreecommitdiff
path: root/libcgroup-0.36.2-systemd.patch
blob: e1cf0c59bf0a4887222bfebbec1b5427359d795c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Ignore systemd hierarchy. Quick&dirity fix for bug #627378

Author: Dhaval Giani <dhaval.bugzilla@thegianis.in>

@@ -, +, @@ 
 src/api.c |    8 ++++++++
 1 file changed, 8 insertions(+)
--- libcgroup-0.36.2/src/api.c	
+++ libcgroup-0.36.2/src/api.c	
@@ -772,6 +772,14 @@ int cgroup_init(void)
 			 * Check if it is a duplicate
 			 */
 			duplicate = 0;
+
+			/*
+			 * Ignore anything to do with systemd
+			 */
+			if (strncmp(mntopt, "name=systemd",
+						strlen("name=systemd")) == 0)
+					continue;
+
 			for (j = 0; j < found_mnt; j++) {
 				if (strncmp(mntopt, cg_mount_table[j].name,
 							FILENAME_MAX) == 0) {