X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcgroup.h;h=a6ac90fb094bfecd7a5d0ba12ad1831aea244d3e;hp=d6d5c86f10478345f99f40793cc89aa306b4ad25;hb=4466ee6a7151b30b7738b09c4c21ffa3872a5047;hpb=4fbf50b38e847aaa2932ac542e20c62f0c1605a3 diff --git a/src/cgroup.h b/src/cgroup.h index d6d5c86f1..a6ac90fb0 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; @@ -58,8 +59,8 @@ void cgroup_bonding_free_list(CGroupBonding *first); int cgroup_bonding_install(CGroupBonding *b, pid_t pid); int cgroup_bonding_install_list(CGroupBonding *first, pid_t pid); -int cgroup_bonding_kill(CGroupBonding *b, int sig, Set *s); -int cgroup_bonding_kill_list(CGroupBonding *first, int sig, Set *s); +int cgroup_bonding_kill(CGroupBonding *b, int sig, bool sigcont, Set *s); +int cgroup_bonding_kill_list(CGroupBonding *first, int sig, bool sigcont, Set *s); void cgroup_bonding_trim(CGroupBonding *first, bool delete_root); void cgroup_bonding_trim_list(CGroupBonding *first, bool delete_root);