Add housekeeping functions to clean up unused cgroups

This should not be needed, but for some reason we don't get events when
early processes exit, so we end up with lingering cgroups.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2025-12-15 22:04:32 +01:00
1 parent e756d6f8ac
commit dd36116a97
3 files changed
+87 -1

No files matched your search

+2
View File
@@ -56,4 +56,6 @@ int cgroup_watch (const char *group, const char *name);
int cgroup_move_pid(const char *group, const char *name, int pid, int delegate);
int cgroup_move_svc(svc_t *svc);
void cgroup_prune (void);
#endif /* FINIT_CGROUP_H_ */