Re: [PATCH 4/7] lxc: Improve guest startup error reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/02/2011 04:19 PM, Eric Blake wrote:
> On 06/02/2011 01:40 PM, Cole Robinson wrote:
>> 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.
>>
>> Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
>> ---
>>  src/lxc/lxc_container.c  |    2 +-
>>  src/lxc/lxc_container.h  |    1 +
>>  src/lxc/lxc_controller.c |   33 +++++++++++++-
>>  src/lxc/lxc_driver.c     |  107 +++++++++++++++++++++++++++++++++++++++++++++-
>>  4 files changed, 137 insertions(+), 6 deletions(-)
>>
> 
>> @@ -1489,6 +1572,12 @@ static int lxcVmStart(virConnectPtr conn,
>>      if (virCommandRun(cmd, NULL) < 0)
>>          goto cleanup;
>>  
>> +    if (VIR_CLOSE(handshakefds[1]) < 0) {
>> +        virReportSystemError(errno, "%s", _("could not close handshake fd"));
>> +        goto cleanup;
>> +    }
>> +    handshakefds[1] = -1;
> 
> This line is redundant; the VIR_CLOSE() above already set this to -1.
> 
> ACK with that nit fixed, post-release.
> 

Thanks, pushed series with this cleanup and the spelling fix in patch 3.

- Cole

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]