Received: from eggs.gnu.org ([2001:4830:134:3::10]:45148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLrSP-0004HN-24 for qemu-devel@nongnu.org; Wed, 20 Jan 2016 07:01:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLrSJ-0006Va-6D for qemu-devel@nongnu.org; Wed, 20 Jan 2016 07:01:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLrSJ-0006VV-1U for qemu-devel@nongnu.org; Wed, 20 Jan 2016 07:01:43 -0500 From: "Daniel P. Berrange" Date: Wed, 20 Jan 2016 12:01:30 +0000 Message-Id: <1453291293-2821-3-git-send-email-berrange@redhat.com> In-Reply-To: <1453291293-2821-1-git-send-email-berrange@redhat.com> References: <1453291293-2821-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PULL v1 2/5] io: increment counter when killing off subcommand List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell When killing the subcommand, it is intended to first send SIGTERM, then SIGKILL and only report an error if it still doesn't die after SIGKILL. The 'step' counter was not being incremented though, so the code never got past the SIGTERM stage. Signed-off-by: Daniel P. Berrange --- io/channel-command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io/channel-command.c b/io/channel-command.c index 598fdab..a220fe8 100644 --- a/io/channel-command.c +++ b/io/channel-command.c @@ -179,6 +179,7 @@ static int qio_channel_command_abort(QIOChannelCommand *ioc, (unsigned long long)ioc->pid); return -1; } + step++; usleep(10 * 1000); goto rewait; } -- 2.5.0