From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B61251381F3 for ; Fri, 26 Jul 2013 01:56:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1098E0963; Fri, 26 Jul 2013 01:56:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A69CE0963 for ; Fri, 26 Jul 2013 01:56:04 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5674033EA2B for ; Fri, 26 Jul 2013 01:56:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CB2CEE5458 for ; Fri, 26 Jul 2013 01:56:01 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1374802431.bee59c68c5ff5be426e68ecb603d4cc26542f4af.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/rc-cgroup.sh.in X-VCS-Directories: sh/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: bee59c68c5ff5be426e68ecb603d4cc26542f4af X-VCS-Branch: master Date: Fri, 26 Jul 2013 01:56:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5aafacdb-0c1b-4dcd-acb7-79c87c1bb75d X-Archives-Hash: 5dbcf1c7444db89ab3f9ab880f3fcf18 commit: bee59c68c5ff5be426e68ecb603d4cc26542f4af Author: William Hubbs gmail com> AuthorDate: Fri Jul 26 01:33:51 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jul 26 01:33:51 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=bee59c68 rc-cgroup: make sure the tasks file exists before adding the pid --- sh/rc-cgroup.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 389e8a0..9329b57 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -77,7 +77,7 @@ cgroup_add_service() # cgroups. But may lead to a problems where that inheriting # is needed. for d in /sys/fs/cgroup/* ; do - echo 0 > "${d}"/tasks + [ -f "${d}"/tasks ] && echo 0 > "${d}"/tasks done openrc_cgroup=/sys/fs/cgroup/openrc