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
This commit is contained in:
William Hubbs 2015-10-06 13:31:43 -05:00
parent b20a1951ad
commit 17ef205bc6

View File

@ -116,7 +116,7 @@ mount_cgroups()
mount -n -t cgroup \ mount -n -t cgroup \
-o none,${sysfs_opts},name=openrc,release_agent="$agent" \ -o none,${sysfs_opts},name=openrc,release_agent="$agent" \
openrc /sys/fs/cgroup/openrc openrc /sys/fs/cgroup/openrc
echo 1 > /sys/fs/cgroup/openrc/notify_on_release printf 1 > /sys/fs/cgroup/openrc/notify_on_release
fi fi
yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0 yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0