mirror of https://github.com/krallin/tini.git
Support possible failure on lx-branded zones
This commit is contained in:
parent
949e6facb7
commit
657f02ed38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue