On Sun, Jan 12, 2014 at 08:44:32PM -0600, Serge Hallyn wrote: > 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]>
Acked-by: Stéphane Graber <[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 -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: Digital signature
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
