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 90D4D13888F for ; Tue, 6 Oct 2015 18:34:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6559E0835; Tue, 6 Oct 2015 18:33:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 60E0DE0835 for ; Tue, 6 Oct 2015 18:33:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1B77B340928 for ; Tue, 6 Oct 2015 18:33:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 82FCDAF1 for ; Tue, 6 Oct 2015 18:33:53 +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: <1444156303.17ef205bc63a4e231dccee719394a7a8563f8c3f.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/sysfs.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 17ef205bc63a4e231dccee719394a7a8563f8c3f X-VCS-Branch: master Date: Tue, 6 Oct 2015 18:33:53 +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: 947539c9-1500-4f13-99a6-97485c78bc6f X-Archives-Hash: dbc469046ce6d4007afe82bdd2978f3b commit: 17ef205bc63a4e231dccee719394a7a8563f8c3f Author: William Hubbs gmail com> AuthorDate: Tue Oct 6 18:31:43 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 6 18:31:43 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=17ef205b sysfs: use printf instead of echo to write to cgroup files This is needed for compatibility with musl and printf is also posix. X-Gentoo-Bug: 562334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562334 init.d/sysfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 5641abe..f0bb313 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -116,7 +116,7 @@ mount_cgroups() mount -n -t cgroup \ -o none,${sysfs_opts},name=openrc,release_agent="$agent" \ openrc /sys/fs/cgroup/openrc - echo 1 > /sys/fs/cgroup/openrc/notify_on_release + printf 1 > /sys/fs/cgroup/openrc/notify_on_release fi yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0