]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/cgroup-util.c
cgroup-util: fix enabling of controllers (#8816)
authorAntique <phrdina@redhat.com>
Thu, 26 Apr 2018 10:37:35 +0000 (12:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Apr 2018 10:37:35 +0000 (12:37 +0200)
commit96aa6591d1103b8cca9a4db80ba478a18bdf3e9a
treef0ce08945a05d2fe78feb4f3bd5b1a421b461919
parent8ac42236b09d2f21f962bf72fcbeee24502f959f
cgroup-util: fix enabling of controllers (#8816)

If enabling controller for some reason fails we need to clear error
for the FILE stream.  Enabling remaining controllers would otherwise
fail because write_string_stream_ts() checks for ferror(f) and returns
-EIO if there is one.

Broken by commit <77fa610b22>.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/basic/cgroup-util.c