]> err.no Git - systemd/commitdiff
cgroup: consider not-realized cgroups empty when killing all processes in them
authorLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 18:45:00 +0000 (20:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 18:45:00 +0000 (20:45 +0200)
src/cgroup.c

index 56529eb6b23b5938a38e648e83a76dda4491f7d6..fb4047f2153cb49d10fb69ea413f7234a80255d6 100644 (file)
@@ -194,7 +194,10 @@ int cgroup_bonding_kill(CGroupBonding *b, int sig) {
                                 r = 0;
                                 goto kill_done;
                         } else {
-                                r = translate_error(r, errno);
+                                if (r == ECGOTHER && errno == ENOENT)
+                                        r = ESRCH;
+                                else
+                                        r = translate_error(r, errno);
                                 break;
                         }
                 }