Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/
Date: Tue, 06 Oct 2015 18:34:05
Message-Id: 1444156303.17ef205bc63a4e231dccee719394a7a8563f8c3f.williamh@OpenRC
1 commit: 17ef205bc63a4e231dccee719394a7a8563f8c3f
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 6 18:31:43 2015 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 6 18:31:43 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=17ef205b
7
8 sysfs: use printf instead of echo to write to cgroup files
9
10 This is needed for compatibility with musl and printf is also posix.
11
12 X-Gentoo-Bug: 562334
13 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562334
14
15 init.d/sysfs.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/init.d/sysfs.in b/init.d/sysfs.in
19 index 5641abe..f0bb313 100644
20 --- a/init.d/sysfs.in
21 +++ b/init.d/sysfs.in
22 @@ -116,7 +116,7 @@ mount_cgroups()
23 mount -n -t cgroup \
24 -o none,${sysfs_opts},name=openrc,release_agent="$agent" \
25 openrc /sys/fs/cgroup/openrc
26 - echo 1 > /sys/fs/cgroup/openrc/notify_on_release
27 + printf 1 > /sys/fs/cgroup/openrc/notify_on_release
28 fi
29
30 yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0