diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-03-15 00:43:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-03-15 00:43:47 +0100 |
commit | fb0864e7b9c6d26269ccea6ec5c0fd921c029781 (patch) | |
tree | ee139418ccf1964f933e6d4b445295f589ef09ce /src | |
parent | 67aa455172189d92abbcf3dc90b2848278edcf1b (diff) |
virt: the pidns controller does not exist anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/virt.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/virt.c b/src/virt.c index 3f0912a8a6..4c526ff454 100644 --- a/src/virt.c +++ b/src/virt.c @@ -236,35 +236,6 @@ int detect_container(const char **id) { fclose(f); } - f = fopen("/proc/self/cgroup", "re"); - if (f) { - - for (;;) { - char line[LINE_MAX], *p; - - if (!fgets(line, sizeof(line), f)) - break; - - p = strchr(strstrip(line), ':'); - if (!p) - continue; - - if (strncmp(p, ":ns:", 4)) - continue; - - if (!streq(p, ":ns:/")) { - fclose(f); - - if (id) - *id = "pidns"; - - return 1; - } - } - - fclose(f); - } - return 0; } |