mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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>
This commit is contained in:
parent
cc75a50c68
commit
0c0a55b229
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue