• P
    virsh: Fix checking for reconnect conditions · d82c6bcf
    Peter Krempa 提交于
    virshReportError() function frees the most recent error reported from
    libvirt. Condition that checks if connection to the daemon was broken
    during last command was then limited to check for SIGPIPE signal not
    taking into account possible errors signalized without SIGPIPE.
    
    This patch moves the check before the error is freed, to take into
    account code that does not emit SIGPIPE while failing.
    
    * tools/virsh.c: - move check for broken connection before error print.
    d82c6bcf
virsh.c 535.6 KB