diff options
| author | Stefan Berger <stefanb@linux.ibm.com> | 2023-01-12 09:34:13 -0500 |
|---|---|---|
| committer | Stefan Berger <stefanb@linux.ibm.com> | 2023-01-16 17:18:51 -0500 |
| commit | 82df11e78d0baef7ffb7e7933c6fb830ffed087c (patch) | |
| tree | 1b5f88c0bf39f98e16c888efc60a1976aaeb62d8 /util/qemu-coroutine-sleep.c | |
| parent | fb7e7990342e59cf67dbd895c1a1e3fb1741df7a (diff) | |
| download | focaccia-qemu-82df11e78d0baef7ffb7e7933c6fb830ffed087c.tar.gz focaccia-qemu-82df11e78d0baef7ffb7e7933c6fb830ffed087c.zip | |
tests/qtest: Poll on waitpid() for a while before sending SIGKILL
To prevent getting stuck on waitpid() in case the target process does not terminate on SIGTERM, poll on waitpid() for 30s and if the target process has not changed state until then send a SIGKILL to it. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-id: 20230112143413.3979057-1-stefanb@linux.ibm.com [PMM: changed TFR to RETRY_ON_EINTR]
Diffstat (limited to 'util/qemu-coroutine-sleep.c')
0 files changed, 0 insertions, 0 deletions