Skip to content

Commit

Permalink
grep cgroup /proc/mounts in mountCgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
lantz committed Jul 26, 2018
1 parent 0d9a679 commit 3a0ef25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mininet/util.py
Expand Up @@ -495,7 +495,7 @@ def fixLimits():

def mountCgroups():
"Make sure cgroups file system is mounted"
mounts = quietRun( 'cat /proc/mounts' )
mounts = quietRun( 'grep cgroup /proc/mounts' )
cgdir = '/sys/fs/cgroup'
csdir = cgdir + '/cpuset'
if ('cgroup %s' % cgdir not in mounts and
Expand Down

0 comments on commit 3a0ef25

Please sign in to comment.