]> git.proxmox.com Git - mirror_lxc.git/commit - src/lua-lxc/core.c
create: add a quiet flag
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 12 Jul 2013 14:44:41 +0000 (09:44 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 12 Jul 2013 16:19:54 +0000 (11:19 -0500)
commitdc23c1c817da5c13529432270e51d0f7f3b1e95e
tree7a0ee146d5b1f2d2edc562867ed4fdc4265bb12c
parentae13ae0853a246119ddaf9c8cc6d128a21a8988c
create: add a quiet flag

If set, then fds 0,1,2 will be redirected while the creation
template is executed.

Note, as Dwight has pointed out, if fd 0 is redirected, then if
templates ask for input there will be a problem.  We could simply
not redirect fd 0, or we could require that templates work without
interaction.  I'm assuming here that we want to do the latter, but
I'm open to changing that.

Reported-by: "S.Çağlar Onur" <caglar@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lua-lxc/core.c
src/lxc/lxc_create.c
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/python-lxc/lxc.c
src/tests/cgpath.c
src/tests/clonetest.c
src/tests/console.c
src/tests/createtest.c
src/tests/get_item.c
src/tests/shutdowntest.c