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>
1 file changed