]> git.proxmox.com Git - mirror_lxc.git/commit
api_start: always close fds 0-2 when daemonized
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 2 Jun 2015 22:33:34 +0000 (22:33 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 2 Jun 2015 23:05:37 +0000 (19:05 -0400)
commit454ec0abc7f315fa4894c43488c981f369cacce9
tree46d0a5d05c6f10924336cf81b414ebf81ae4868f
parent27be573155c3f6559db22b446e6cb10cb7e5ab54
api_start: always close fds 0-2 when daemonized

commit 507cee3618237d3 moved the close and re-open of fds 0-2 into
do_start.  But this means that the lxc monitor itself keeps the
caller's fds 0-2 open, which is wrong for daemonized containers.

Closes #548

Reported-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c