commit | ed33205a70c20620345492d3a331a90d5c2cb2ca | [log] [download] |
---|---|---|
author | Glauber Costa <glommer@openvz.org> | Sat Jul 14 17:41:23 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Sat Jul 14 17:41:23 2012 +0400 |
tree | 90f3affa57897cb70c49732f8e1267097230cc42 | |
parent | 871a8f44f3bbb92981e1cd6116020915606ea7c8 [diff] |
Test for vz kernel If we fail to open /dev/vzctl, we'll consider no longer a failure, but a statement that we're not running under OpenVZ kernel. vzfd == -1 then indicates that this is the case. [kir@: FIXME what if we ARE under OpenVZ but can't open device?] Signed-off-by: Glauber Costa <glommer@parallels.com>