From 7581d645eea3863b0df568b637b45e4a56349d3e Mon Sep 17 00:00:00 2001 From: Rachid Koucha <47061324+Rachid-Koucha@users.noreply.github.com> Date: Fri, 6 Dec 2019 15:04:31 +0100 Subject: [PATCH] "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 --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2