mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 17:18:01 +03: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:
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
Block a user