diff options
author | Roy Marples <roy@marples.name> | 2009-11-04 19:21:24 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-11-04 19:21:24 +0000 |
commit | 95ee39ab1c9ce313725098999cf1d05b42f9c126 (patch) | |
tree | e566ec18c45e9c82401c9b042ecbc753500b508f /src/librc/librc.c | |
parent | 3c8ea5896a8c7a6f7cc97cff1bd7b3c8a5739a61 (diff) |
Add support for Linux Containers, fixes #202.
Patch by bug reporter.
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r-- | src/librc/librc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index 96e3195d..34bd9e15 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -233,6 +233,8 @@ rc_sys(void) return RC_SYS_VSERVER; else if (exists("/proc/vz/veinfo") && !exists("/proc/vz/version")) return RC_SYS_OPENVZ; + else if (file_regex("/proc/self/cgroup", ":/.+$")) + return RC_SYS_LXC; else if (file_regex("/proc/self/status", "envID:[[:space:]]*[1-9]")) return RC_SYS_OPENVZ; /* old test */ |