chiark / gitweb /
util: loop_write - accept 0-length message
[elogind.git] / src / shared / cgroup-show.c
index ea66c7672486522b6e3d98351a9d45cb9cc8c9c4..8ff9be876cba0a3000197f4c327a533ab5222398 100644 (file)
 #include <errno.h>
 
 #include "util.h"
+#include "formats-util.h"
 #include "macro.h"
 #include "path-util.h"
 #include "cgroup-util.h"
 #include "cgroup-show.h"
+#include "terminal-util.h"
 
 static int compare(const void *a, const void *b) {
         const pid_t *p = a, *q = b;
@@ -93,7 +95,7 @@ static int show_cgroup_one_by_path(const char *path, const char *prefix, unsigne
         if (r < 0)
                 return r;
 
-        fn = strappenda(p, "/cgroup.procs");
+        fn = strjoina(p, "/cgroup.procs");
         f = fopen(fn, "re");
         if (!f)
                 return -errno;