mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
committed by
Peter Krempa
parent
15dee2ef24
commit
8fa216bbb4
@@ -1857,7 +1857,7 @@ virshBlockJobWait(virshBlockJobWaitDataPtr data)
|
|||||||
|
|
||||||
if (data->timeout && virTimeMillisNow(&start) < 0) {
|
if (data->timeout && virTimeMillisNow(&start) < 0) {
|
||||||
vshSaveLibvirtError();
|
vshSaveLibvirtError();
|
||||||
return -1;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
last.cur = last.end = 0;
|
last.cur = last.end = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user