Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@stgraber.org): > On 05/29/2013 01:38 PM, Serge Hallyn wrote: > > Quoting Dwight Engen (dwight.en...@oracle.com): > >> On Wed, 29 May 2013 09:24:40 -0500 > >> Serge Hallyn wrote: > >> > >>> Quoting Dwight Engen (dwight.en...@oracle.com): > Make lxc_cmd_console

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Dwight Engen
On Wed, 29 May 2013 13:52:51 -0400 Stéphane Graber wrote: > On 05/29/2013 01:38 PM, Serge Hallyn wrote: > > Quoting Dwight Engen (dwight.en...@oracle.com): > >> On Wed, 29 May 2013 09:24:40 -0500 > >> Serge Hallyn wrote: > >> > >>> Quoting Dwight Engen (dwight.en...@oracle.com): > Make lxc_

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Stéphane Graber
On 05/29/2013 01:38 PM, Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): >> On Wed, 29 May 2013 09:24:40 -0500 >> Serge Hallyn wrote: >> >>> Quoting Dwight Engen (dwight.en...@oracle.com): Make lxc_cmd_console() return the fd from the socket connection to the caller.

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Wed, 29 May 2013 09:24:40 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > Make lxc_cmd_console() return the fd from the socket connection to > > > the caller. This fd keeps the tty slot allocated until th

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Wed, 29 May 2013 10:01:45 -0500 > Serge Hallyn wrote: > > > Quoting Serge Hallyn (serge.hal...@ubuntu.com): > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > Make lxc_cmd_console() return the fd from the socket connection > > > > to

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Dwight Engen
On Wed, 29 May 2013 10:01:45 -0500 Serge Hallyn wrote: > Quoting Serge Hallyn (serge.hal...@ubuntu.com): > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > Make lxc_cmd_console() return the fd from the socket connection > > > to the caller. This fd keeps the tty slot allocated until the >

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Serge Hallyn
Quoting Serge Hallyn (serge.hal...@ubuntu.com): > Quoting Dwight Engen (dwight.en...@oracle.com): > > 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 proc

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Dwight Engen
On Wed, 29 May 2013 09:24:40 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > 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 l

Re: [lxc-devel] [PATCH] add console to lxc api

2013-05-29 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > 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 f

[lxc-devel] [PATCH] add console to lxc api

2013-05-28 Thread Dwight Engen
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 con