chiark / gitweb /
service: brutally slaughter processes that are running in the cgroup when we enter...
[elogind.git] / src / cgroup.c
index 4bbb54fd7e41a17f96ea8f3b651cc43aa8e5f089..9680cd6d2a18886c6e671b7b10c96fd8f3fb1b5b 100644 (file)
@@ -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;