]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use VIR_MASS_CLOSE in LXC container startup
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Mar 2013 16:39:33 +0000 (16:39 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Mar 2013 18:10:36 +0000 (18:10 +0000)
commit58e0accd8af7d0b7b9066c950f736396d0f7a129
treedbdd417320fb09ae3a87cdd8ec3cd57844f1457e
parenta66b32d9295ed87698ffd98d82e9e5818ff799e5
Use VIR_MASS_CLOSE in LXC container startup

In the LXC container startup code when switching stdio
streams, we call VIR_FORCE_CLOSE on all FDs. This triggers
a huge number of warnings, but we don't see them because
stdio is closed at this point. strace() however shows them
which can confuse people debugging the code. Switch to
VIR_MASS_CLOSE to avoid this

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c