systemctl: add new "get-cgroup-attr" to query current cgroup attribute value

Also adds a pair of bus calls for this to the daemon.
This commit is contained in:
Lennart Poettering
2013-01-18 01:44:41 +01:00
parent d54110d11d
commit d2a3097582
6 changed files with 214 additions and 25 deletions
+3
View File
@@ -641,6 +641,9 @@ int read_full_file(const char *fn, char **contents, size_t *size) {
_cleanup_free_ char *buf = NULL;
struct stat st;
assert(fn);
assert(contents);
f = fopen(fn, "re");
if (!f)
return -errno;