It's nice if we can do it, but not required.  Exiting on this
failure causes lxc-create started by root as a less-privileged
userid to fail.

Signed-off-by: Serge Hallyn <[email protected]>
---
 src/lxc/lxc_usernsexec.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lxc/lxc_usernsexec.c b/src/lxc/lxc_usernsexec.c
index f152f91..98a353a 100644
--- a/src/lxc/lxc_usernsexec.c
+++ b/src/lxc/lxc_usernsexec.c
@@ -76,9 +76,8 @@ static void opentty(const char * tty) {
 
        fd = open(tty, O_RDWR | O_NONBLOCK);
        if (fd == -1) {
-               printf("FATAL: can't reopen tty: %s", strerror(errno));
-               sleep(1);
-               exit(1);
+               printf("WARN: could not reopen tty: %s", strerror(errno));
+               return;
        }
 
        flags = fcntl(fd, F_GETFL);
-- 
1.8.5.2

_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to