File 8fa216bb-block-job.patch of Package libvirt.3100

commit 8fa216bbb40df33e7fce5d727aa3dc334480878a
Author: Michael Chapman <mike@very.puzzling.org>
Date:   Wed Jan 27 13:24:53 2016 +1100

    virsh: ensure SIGINT action is reset on all errors
    
    If virTimeMillisNow() fails, the SIGINT action must be reset back to
    its previous state.
    
    Signed-off-by: Michael Chapman <mike@very.puzzling.org>

Index: libvirt-1.2.18.4/tools/virsh-domain.c
===================================================================
--- libvirt-1.2.18.4.orig/tools/virsh-domain.c
+++ libvirt-1.2.18.4/tools/virsh-domain.c
@@ -1866,7 +1866,7 @@ vshBlockJobWait(vshBlockJobWaitDataPtr d
 
     if (data->timeout && virTimeMillisNow(&start) < 0) {
         vshSaveLibvirtError();
-        return -1;
+        goto cleanup;
     }
 
     last.cur = last.end = 0;