]> git.ipfire.org Git - thirdparty/systemd.git/commit
machined: when opening a shell via machined, pass tty fds in
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Oct 2015 21:38:20 +0000 (23:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Oct 2015 13:03:31 +0000 (15:03 +0200)
commit40e1f4ea7458a0a80eaf1ef356e52bfe0835412e
tree51243d22f3e9af06b42c229341aa5bf0fa31c7ed
parenta34ceba66fc0e856d8f76f340389a4768b57a365
machined: when opening a shell via machined, pass tty fds in

With this change we'll open the shell's tty right from machined and then
pass it to the transient unit we create. This way we make sure the pty
is opened exactly as long as the transient service is around, and no
longer, and vice versa. This way pty forwarders do not have to deal with
EIO problems due to vhangup, as the pty is open all the time from the
point we set things up to the point where the service goes away.
src/basic/terminal-util.c
src/basic/terminal-util.h
src/machine/machine-dbus.c
src/machine/machine.c
src/machine/machine.h
src/machine/machinectl.c