This patch filter out systemd mounts otherwise causing segfault for the
second testcase in function libcgrouptest01 in RHEL7.
---
tests/runlibcgrouptest.sh | 2 +-
tests/runlibcgrouptest.sh.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh
index 221729c..605f045 100644
--- a/tests/runlibcgrouptest.sh
+++ b/tests/runlibcgrouptest.sh
@@ -48,7 +48,7 @@ debug()
check_mount_fs ()
{
local NUM_MOUNT=0;
- CGROUP=`cat /proc/mounts|grep -w ^cgroup|tr -s [:space:]|cut -d" "
-f3`;
+ CGROUP=`cat /proc/mounts|grep -w ^cgroup|grep -v systemd|tr -s
[:space:]|cut -d" " -f3`;
# get first word in case of multiple mounts
CGROUP=`echo $CGROUP|cut -d" " -f1`;
diff --git a/tests/runlibcgrouptest.sh.in b/tests/runlibcgrouptest.sh.in
index 119addd..8a57881 100755
--- a/tests/runlibcgrouptest.sh.in
+++ b/tests/runlibcgrouptest.sh.in
@@ -48,7 +48,7 @@ debug()
check_mount_fs ()
{
local NUM_MOUNT=0;
- CGROUP=`cat /proc/mounts|grep -w ^cgroup|tr -s [:space:]|cut -d" "
-f3`;
+ CGROUP=`cat /proc/mounts|grep -w ^cgroup|grep -v systemd|tr -s
[:space:]|cut -d" " -f3`;
# get first word in case of multiple mounts
CGROUP=`echo $CGROUP|cut -d" " -f1`;
--
1.8.5.3
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel