]> git.ipfire.org Git - thirdparty/lxc.git/commit
start: dup std{in,out,err} to pty slave
authorLi Feng <lifeng68@huawei.com>
Mon, 10 Jul 2017 09:19:52 +0000 (17:19 +0800)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 29 Nov 2017 11:52:48 +0000 (12:52 +0100)
commit74941f9a3376e2a854ad449d1d65436013704e34
tree0c840f336e45b05d81d3aa9fa80f54fb3ea2434b
parentd1ea3f93f6f2cbbb138030cb718603c2d2a6f0aa
start: dup std{in,out,err} to pty slave

In the case the container has a console with a valid slave pty file descriptor
we duplicate std{in,out,err} to the slave file descriptor so console logging
works correctly.
Also, we should become session leader.

Closes #1646.
Closes #1951.

Signed-off-by: Li Feng <lifeng68@huawei.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c