]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/conf.c
Merge pull request #3235 from xinhua9569/master
[mirror_lxc.git] / src / lxc / conf.c
index 9410d4c9d8f5bb336d61d148d93c39859a763a8f..457e1e16585b71db1069e7baf4fa86ec5b1acfd8 100644 (file)
@@ -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);