Unverified Commit 7581d645 by Rachid Koucha Committed by GitHub

"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: 's avatarRachid Koucha <rachid.koucha@gmail.com>
parent dd3de568
......@@ -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);
......
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