chiark / gitweb /
cgroup: never try to create files in cgroupfs, only open them for writing
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Aug 2014 09:55:43 +0000 (11:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Aug 2014 09:57:07 +0000 (11:57 +0200)
commit70c949a42b2b0d0c9a2a567890483940cdc5f72c
tree11bd2bc1e49e2e89e19528b669f5af04cea3a9d6
parentce049dcda4a9d0c9a44667ca82bc9e21d7ea7748
cgroup: never try to create files in cgroupfs, only open them for writing

This should have the benefit that cg_set_attribute() returns ENOENT
instead of EACCESS when we use it for non-existing attributes.
src/shared/cgroup-util.c
src/shared/fileio.c
src/shared/fileio.h