]> xenbits.xensource.com Git - libvirt.git/commit
lxc: Improve guest startup error reporting
authorCole Robinson <crobinso@redhat.com>
Wed, 1 Jun 2011 22:17:00 +0000 (18:17 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 7 Jun 2011 18:38:39 +0000 (14:38 -0400)
commit965a957cccb939bd82e068d10448a8af9a44c661
treea841847e717830c845062be683c3b8af55b1e83a
parentaf1e180f4840b2df6f4f30ce27b44feab123753b
lxc: Improve guest startup error reporting

Add a simple handshake with the lxc_controller process so we can detect
process startup failures. We do this by adding a new --handshake cli arg
to lxc_controller for passing a file descriptor. If the process fails to
launch, we scrape all output from the logfile and report it to the user.
src/lxc/lxc_container.c
src/lxc/lxc_container.h
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c