diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-01-12 13:06:48 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:50:15 +0200 |
commit | f4a6a30ae524a0402c7839cef74385bacdeafec9 (patch) | |
tree | 8a555e5599f3746831afda210b51fd9404b8670a /src/core/cgroup.h | |
parent | 8a493df450829eeaacac46243ecfcc99a40e3755 (diff) |
core: unify call we use to synthesize cgroup empty events when we stopped watching any unit PIDs
This code is very similar in scope and service units, let's unify it in
one function. This changes little for service units, but for scope units
makes sure we go through the cgroup queue, which is something we should
do anyway.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r-- | src/core/cgroup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h index 159fac4a4..1c43c0d14 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -197,6 +197,8 @@ Unit* manager_get_unit_by_pid(Manager *m, pid_t pid); int unit_search_main_pid(Unit *u, pid_t *ret); int unit_watch_all_pids(Unit *u); +int unit_synthesize_cgroup_empty_event(Unit *u); + int unit_get_memory_current(Unit *u, uint64_t *ret); int unit_get_tasks_current(Unit *u, uint64_t *ret); int unit_get_cpu_usage(Unit *u, nsec_t *ret); |