From: Lennart Poettering Date: Wed, 18 Feb 2015 22:32:55 +0000 (+0100) Subject: nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1 X-Git-Tag: v219.0~631 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9c857b9d160c10b4454fc9f83442c1878343422f;hp=9c857b9d160c10b4454fc9f83442c1878343422f;ds=sidebyside nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1 Previously we always invoked the container PID 1 on /dev/console of the container. With this change we do so only if nspawn was invoked interactively (i.e. its stdin/stdout was connected to a TTY). In all other cases we directly pass through the fds unmodified. This has the benefit that nspawn can be added into shell pipelines. https://bugs.freedesktop.org/show_bug.cgi?id=87732 ---