From dce989e96df05c0777e407b7d2cbd1c67a67f630 Mon Sep 17 00:00:00 2001 From: Alexander V Vershilov Date: Sat, 25 May 2013 17:37:56 +0400 Subject: cgroups: hide messages about non-existent processes --- sh/rc-cgroup.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 81fc7d86..d96aa164 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -115,7 +115,7 @@ cgroup_cleanup() cgroup_get_pids || { eend 0 "finished" ; return 0 ; } sleep 1 done - done + done 2>/dev/null done cgroup_get_pids || { eend 0 "finished" ; return 0; } kill -9 $pids -- cgit v1.2.3 From 9f14fd7ae10d8ae724045a57a2eb25c1d4290a3b Mon Sep 17 00:00:00 2001 From: Alexander V Vershilov Date: Sun, 2 Jun 2013 22:49:19 +0400 Subject: Fix quoting in cgroup-release-agent --- sh/cgroup-release-agent.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/cgroup-release-agent.sh.in b/sh/cgroup-release-agent.sh.in index c3174fee..d6dd1e1e 100644 --- a/sh/cgroup-release-agent.sh.in +++ b/sh/cgroup-release-agent.sh.in @@ -5,6 +5,6 @@ cgroup=/sys/fs/cgroup/openrc PATH=/bin:/usr/bin:/sbin:/usr/sbin -if [ -d ${cgroup}/$1 ]; then - rmdir ${cgroup}/$1 +if [ -d ${cgroup}/"$1" ]; then + rmdir ${cgroup}/"$1" fi -- cgit v1.2.3