Revision e16c5fe9

View differences:

mininet/node.py
653 653
           args: Popen() args, single list, or string
654 654
           kwargs: Popen() keyword args"""
655 655
        # Tell mnexec to execute command in our cgroup
656
        mncmd = [ 'mnexec', '-da', str( self.pid ),
657
                  '-g', self.name ]
656
        mncmd = [ 'mnexec', '-g', self.name,
657
                  '-da', str( self.pid ) ]
658 658
        if self.sched == 'rt':
659 659
            mncmd += [ '-r', str( self.rtprio ) ]
660 660
        return Host.popen( self, *args, mncmd=mncmd, **kwargs )
util/m
40 40
    cmd="chroot $rootdir /bin/bash -c $cmd"
41 41
fi
42 42

  
43
cmd="exec sudo mnexec -a $pid $cg $cmd"
43
cmd="exec sudo mnexec $cg -a $pid $cmd"
44 44
eval $cmd

Also available in: Unified diff