chiark / gitweb /
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 56529eb..fb4047f 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;
                         }
                 }