]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-attach: add comment, & implement login_tty() 839/head
authorChristian Brauner <christian.brauner@mailbox.org>
Mon, 22 Feb 2016 11:27:06 +0000 (12:27 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Mon, 22 Feb 2016 14:41:58 +0000 (15:41 +0100)
commit9bd91876326d412b1308ee90d2150bd7534b376c
treedeb39516e13c11d8745e38ac05df27065da3f386
parentf7cdb292fe7d06d7c2abac448038211bbb5dea25
lxc-attach: add comment, & implement login_tty()

- The code required to prepare an fd to act as a login tty is shared among
  pty_on_host_callback() and fork_pty(). This implements login_pty(), a
  minimalistic login_tty() clone, to avoid code redundancy.
- Give pty_in_container() a slightly extended comment.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/lxc_attach.c