conf: do not log devpts umount2() failure

We're not acting based on the return value so don't log anything. Fixes: https://discuss.linuxcontainers.org/t/warning-in-the-container-log/4072/2Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 2cd64122
...@@ -1639,11 +1639,7 @@ static int lxc_setup_devpts(struct lxc_conf *conf) ...@@ -1639,11 +1639,7 @@ static int lxc_setup_devpts(struct lxc_conf *conf)
if (ret < 0 || (size_t)ret >= sizeof(devpts_mntopts)) if (ret < 0 || (size_t)ret >= sizeof(devpts_mntopts))
return -1; return -1;
ret = umount2("/dev/pts", MNT_DETACH); (void)umount2("/dev/pts", MNT_DETACH);
if (ret < 0)
SYSWARN("Failed to unmount old devpts instance");
else
DEBUG("Unmounted old devpts instance");
/* Create mountpoint for devpts instance. */ /* Create mountpoint for devpts instance. */
ret = mkdir("/dev/pts", 0755); ret = mkdir("/dev/pts", 0755);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment