X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcgroup.h;h=89854ff34ee0088a1ae3038fa437ee833a314e0a;hp=e38d7e79e6f3283702c67266b3ae87a4ce4c0987;hb=80758717a6359cbe6048f43a17c2b53a3ca8c2fa;hpb=ca949c9dcf17ea8d6512ac4c5c1a806ded9b8dc1 diff --git a/src/cgroup.h b/src/cgroup.h index e38d7e79e..89854ff34 100644 --- a/src/cgroup.h +++ b/src/cgroup.h @@ -39,11 +39,12 @@ struct CGroupBonding { /* For the Manager::cgroup_bondings hashmap */ LIST_FIELDS(CGroupBonding, by_path); - /* When shutting down, remove cgroup? */ - bool clean_up:1; + /* When shutting down, remove cgroup? Are our own tasks the + * only ones in this group?*/ + bool ours:1; - /* When our tasks are the only ones in this group */ - bool only_us:1; + /* If we cannot create this group, or add a process to it, is this fatal? */ + bool essential:1; /* This cgroup is realized */ bool realized:1; @@ -71,6 +72,9 @@ CGroupBonding *cgroup_bonding_find_list(CGroupBonding *first, const char *contro char *cgroup_bonding_to_string(CGroupBonding *b); +pid_t cgroup_bonding_search_main_pid(CGroupBonding *b); +pid_t cgroup_bonding_search_main_pid_list(CGroupBonding *b); + #include "manager.h" int manager_setup_cgroup(Manager *m);