From 8fa216bbb40df33e7fce5d727aa3dc334480878a Mon Sep 17 00:00:00 2001 From: Michael Chapman Date: Wed, 27 Jan 2016 13:24:53 +1100 Subject: [PATCH] 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 --- tools/virsh-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index cdeccaced6..750b273baa 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -1857,7 +1857,7 @@ virshBlockJobWait(virshBlockJobWaitDataPtr data) if (data->timeout && virTimeMillisNow(&start) < 0) { vshSaveLibvirtError(); - return -1; + goto cleanup; } last.cur = last.end = 0;