mirror of https://gitee.com/openkylin/libvirt.git
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>
This commit is contained in:
parent
15dee2ef24
commit
8fa216bbb4
|
@ -1857,7 +1857,7 @@ virshBlockJobWait(virshBlockJobWaitDataPtr data)
|
|||
|
||||
if (data->timeout && virTimeMillisNow(&start) < 0) {
|
||||
vshSaveLibvirtError();
|
||||
return -1;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
last.cur = last.end = 0;
|
||||
|
|
Loading…
Reference in New Issue