From: Rachid Koucha <47061324+Rachid-Koucha@users.noreply.github.com> Date: Fri, 6 Dec 2019 14:04:31 +0000 (+0100) Subject: "busy" field set to 1 instead of 0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bcae9fb23f2c7b5511fef47a8986036b1871931;p=thirdparty%2Flxc.git "busy" field set to 1 instead of 0 "busy" field is assigned with the command socket descriptor when the terminal is in use. So, use "-1" to disable it. Signed-off-by: Rachid Koucha --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 6e8638b3c..e2098fb39 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -981,7 +981,7 @@ int lxc_allocate_ttys(struct lxc_conf *conf) SYSWARN("Failed to set FD_CLOEXEC flag on slave fd %d of " "tty device \"%s\"", tty->slave, tty->name); - tty->busy = 0; + tty->busy = -1; } INFO("Finished creating %zu tty devices", ttys->max);