Merge pull request #64 from geek/master

Support ENXIO on lx-branded zones
This commit is contained in:
Thomas Orozco 2016-12-05 20:59:02 +01:00 committed by GitHub
commit d6938f1a63
1 changed files with 3 additions and 0 deletions

View File

@ -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;