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-Tag: lxc-4.0.0~80^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7581d645eea3863b0df568b637b45e4a56349d3e;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 b192c7550..03f4d6958 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1006,7 +1006,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);