Skip to content

Commit 4a25d8e

Browse files
author
Karol Wrona
committed
fix teardown-cgroup
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>
1 parent e459c49 commit 4a25d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

teardown-cgroup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ then
2222
exit
2323
fi
2424

25-
for pid in `cat $cgroupdir/$testdir/tasks`
25+
for pid in $(cat $cgroupdir/$testdir/tasks)
2626
do
27-
echo $pid > $cgroupdir/tasks
27+
exec echo $pid > $cgroupdir/tasks
2828
done
2929

3030
rmdir $cgroupdir/$testdir

0 commit comments

Comments
 (0)