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:
Michael Chapman
2016-01-27 13:24:53 +11:00
committed by Peter Krempa
parent 15dee2ef24
commit 8fa216bbb4

View File

@@ -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;