]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.h
add console to lxc api
authorDwight Engen <dwight.engen@oracle.com>
Tue, 28 May 2013 19:25:41 +0000 (15:25 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 29 May 2013 17:34:46 +0000 (12:34 -0500)
commit0115f8fd27b1a31d367bb161a121694f92b45e62
treeb1fe81e6e1b44d771add5f389afefe2dabea214e
parent3db989bad5d58bafac80f448e1dd2d048e791478
add console to lxc api

Make lxc_cmd_console() return the fd from the socket connection to the
caller. This fd keeps the tty slot allocated until the caller closes
it. Returning the fd allows for a long lived process to close the fd
and reuse consoles.

Add API function for console allocation.

Create test program for console API.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
.gitignore
src/lxc/commands.c
src/lxc/commands.h
src/lxc/lxc_console.c
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/tests/Makefile.am
src/tests/console.c [new file with mode: 0644]