chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: rely only on isolate to remove running services when entering rescue/emergency...
[elogind.git]
/
src
/
systemd-cgls.c
diff --git
a/src/systemd-cgls.c
b/src/systemd-cgls.c
index 6614f0fd2539c53369070053c157b8dffa8cc9b1..cd03e91b83e4daff7e115ccd8b962afd0581b81f 100644
(file)
--- a/
src/systemd-cgls.c
+++ b/
src/systemd-cgls.c
@@
-27,6
+27,7
@@
#include <string.h>
#include "cgroup-show.h"
#include <string.h>
#include "cgroup-show.h"
+#include "cgroup-util.h"
#include "log.h"
#include "util.h"
#include "log.h"
#include "util.h"
@@
-89,7
+90,7
@@
int main(int argc, char *argv[]) {
int q;
printf("%s:\n", argv[i]);
int q;
printf("%s:\n", argv[i]);
- if ((q = show_cgroup_
recursive
(argv[i], NULL, 0)) < 0)
+ if ((q = show_cgroup_
by_path
(argv[i], NULL, 0)) < 0)
r = q;
}
r = q;
}
@@
-103,9
+104,9
@@
int main(int argc, char *argv[]) {
if (path_startswith(p, "/cgroup")) {
printf("Working Directory %s:\n", p);
if (path_startswith(p, "/cgroup")) {
printf("Working Directory %s:\n", p);
- r = show_cgroup_
recursive
(p, NULL, 0);
+ r = show_cgroup_
by_path
(p, NULL, 0);
} else
} else
- r = show_cgroup
_recursive("
", NULL, 0);
+ r = show_cgroup
(SYSTEMD_CGROUP_CONTROLLER, "/
", NULL, 0);
free(p);
}
free(p);
}