summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-01-11 13:00:36 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:25 -0600
commit99c8aa59388f27cb11ae3a83af686e5aa4d58499 (patch)
tree113ea28122537a23bb57df49fb718ac67fa3b2a8 /io
parentcfe01708a4cdb94df8ff44575dec140f7cd1c404 (diff)
downloadhqemu-99c8aa59388f27cb11ae3a83af686e5aa4d58499.zip
hqemu-99c8aa59388f27cb11ae3a83af686e5aa4d58499.tar.gz
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 <berrange@redhat.com>
Diffstat (limited to 'io')
-rw-r--r--io/channel-command.c1
1 files changed, 1 insertions, 0 deletions
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;
}
OpenPOWER on IntegriCloud