]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.h
Allow unsetting daemonize and close_fds
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 29 Nov 2013 15:53:15 +0000 (10:53 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 29 Nov 2013 21:05:07 +0000 (16:05 -0500)
commit540f932aeb28274e8e7ea1e8f3a8e5889b88e1d6
tree7b8f197098e8e167d8bbaca60400b23bb1bbaed9
parentc1ee94cfd3c96a0c279ebcf617156385aabb7054
Allow unsetting daemonize and close_fds

As mentioned in a previous commit, this does two changes:
 - Make want_daemonize return a bool (false on failure, true on success)
 - Make both want_daemonize and want_close_all_fds take a "state"
   argument so the user can choose to unset those flags.

This commit also updates all occurences of those two functions and turns
the daemonize attribute from an int to a bool.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
12 files changed:
src/lua-lxc/core.c
src/lxc/lxc_start.c
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/python-lxc/lxc.c
src/tests/attach.c
src/tests/cgpath.c
src/tests/concurrent.c
src/tests/console.c
src/tests/containertests.c
src/tests/createtest.c
src/tests/shutdowntest.c