From 657f02ed38484d01d884aead2c10d9133face813 Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Sat, 3 Dec 2016 14:28:07 -0600 Subject: [PATCH] Support possible failure on lx-branded zones --- src/tini.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tini.c b/src/tini.c index 96ce427..10cf642 100644 --- a/src/tini.c +++ b/src/tini.c @@ -116,6 +116,9 @@ int isolate_child() { if (tcsetpgrp(STDIN_FILENO, getpgrp())) { if (errno == ENOTTY) { PRINT_DEBUG("tcsetpgrp failed: no tty (ok to proceed)") + } else if (errno == ENXIO) { + // can occur on lx-branded zones + PRINT_DEBUG("tcsetpgrp failed: no such device (ok to proceed"); } else { PRINT_FATAL("tcsetpgrp failed: %s", strerror(errno)); return 1;