Skip to content

Commit

Permalink
fix teardown-cgroup
Browse files Browse the repository at this point in the history
Probably it is not important because 'test' cgroup dir for those processes
is removed but bash complains about pid list and echo fails so pid removal
does not take place.

Signed-off-by: Karol Wrona <k.wrona@samsung.com>
  • Loading branch information
Karol Wrona committed Oct 4, 2013
1 parent e459c49 commit 4a25d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teardown-cgroup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ then
exit
fi

for pid in `cat $cgroupdir/$testdir/tasks`
for pid in $(cat $cgroupdir/$testdir/tasks)
do
echo $pid > $cgroupdir/tasks
exec echo $pid > $cgroupdir/tasks
done

rmdir $cgroupdir/$testdir

0 comments on commit 4a25d8e

Please sign in to comment.