From: Natanael Copa Date: Wed, 12 Jun 2013 09:18:04 +0000 (+0200) Subject: lxc-init: continue even if we fail to mount /dev/mqueue X-Git-Tag: lxc-1.0.0.alpha1~1^2~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4d3ebb13705d1e102429c75fc06932f81816dd;p=thirdparty%2Flxc.git lxc-init: continue even if we fail to mount /dev/mqueue The 'lxc-init' (a lightweight init process used by lxc-execute in place of upstart etc) tries to mount /dev/mqueue during startup. If that fails (for instance due to missing support for mqueue in kernel) then it aborts execution and returns -1. This is unreasonable as very few applications actually need /dev/mqueue. This similar to what we do with /dev/shm. Signed-off-by: Natanael Copa Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 6c0f9d065..136f943a1 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -148,8 +148,9 @@ extern int lxc_setup_fs(void) return 0; } + /* continue even without posix message queue support */ if (mount_fs("mqueue", "/dev/mqueue", "mqueue")) - return -1; + INFO("failed to mount /dev/mqueue"); return 0; }