Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 2e05903add3439724288546c6bb2af46 > files > 1

libcgroup-0.37.1-4.mga2.src.rpm

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) {