summaryrefslogtreecommitdiff
path: root/src/cgroup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-11 01:51:32 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-11 02:52:34 +0100
commit8f53a7b8ea9ba505f8fefe4df4aaa5a8aab1e2eb (patch)
tree2d28435af78ddd6ef67b00afd2438b54158ecca8 /src/cgroup.c
parentb3fa47e0819b08ea32e69e19e6d88ce2daca069d (diff)
service: brutally slaughter processes that are running in the cgroup when we enter START_PRE and START
Diffstat (limited to 'src/cgroup.c')
-rw-r--r--src/cgroup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cgroup.c b/src/cgroup.c
index 4bbb54fd7e..9680cd6d2a 100644
--- a/src/cgroup.c
+++ b/src/cgroup.c
@@ -197,6 +197,9 @@ int cgroup_bonding_kill_list(CGroupBonding *first, int sig, bool sigcont, Set *s
Set *allocated_set = NULL;
int ret = -EAGAIN, r;
+ if (!first)
+ return 0;
+
if (!s)
if (!(s = allocated_set = set_new(trivial_hash_func, trivial_compare_func)))
return -ENOMEM;