From 99c8aa59388f27cb11ae3a83af686e5aa4d58499 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 11 Jan 2016 13:00:36 +0000 Subject: io: increment counter when killing off subcommand 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(+) (limited to 'io/channel-command.c') 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; } -- cgit v1.1