Re: [lxc-devel] [PATCH v2] console API improvements

2013-06-12 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Add a higher level console API that opens a tty/console and runs the > mainloop as well. Rename existing API to console_getfd(). Use these in > the python binding. > > Allow attaching a console peer after container bootup, including if the > contai

Re: [lxc-devel] [PATCH v2] console API improvements

2013-06-12 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Add a higher level console API that opens a tty/console and runs the > mainloop as well. Rename existing API to console_getfd(). Use these in > the python binding. > > Allow attaching a console peer after container bootup, including if the > contai

Re: [lxc-devel] [PATCH v2] console API improvements

2013-06-12 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Add a higher level console API that opens a tty/console and runs the > mainloop as well. Rename existing API to console_getfd(). Use these in > the python binding. > > Allow attaching a console peer after container bootup, including if the > contai

Re: [lxc-devel] [PATCH] console API improvements

2013-06-12 Thread Dwight Engen
On Mon, 10 Jun 2013 21:24:19 -0500 Serge Hallyn wrote: > > Thanks for the scenario, I tried it here and it is working for me > > (ie. gnome-terminal, mosh to server, then screen lxc-console -n > > -t 0, then resize gnome-terminal). I did see something else > > though far more concerning: in this

[lxc-devel] [PATCH v2] console API improvements

2013-06-12 Thread Dwight Engen
Add a higher level console API that opens a tty/console and runs the mainloop as well. Rename existing API to console_getfd(). Use these in the python binding. Allow attaching a console peer after container bootup, including if the container was launched with -d. This is made possible by allocatio

Re: [lxc-devel] [PATCH] lxc-init: continue even if we fail to mount /dev/mqueue

2013-06-12 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): > The 'lxc-init' (a lightweight init process used by lxc-execute in place > of upstart etc) tries to mount /dev/mqueue during startup. If that fails > (for instance due to missing support for mqueue in kernel) then it > aborts execution and returns -1.

[lxc-devel] [PATCH] lxc-init: continue even if we fail to mount /dev/mqueue

2013-06-12 Thread Natanael Copa
The 'lxc-init' (a lightweight init process used by lxc-execute in place of upstart etc) tries to mount /dev/mqueue during startup. If that fails (for instance due to missing support for mqueue in kernel) then it aborts execution and returns -1. This is unreasonable as very few applications actually