aboutsummaryrefslogtreecommitdiff
path: root/util/coroutine-sigaltstack.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2023-01-12 09:34:13 -0500
committerStefan Berger <stefanb@linux.ibm.com>2023-01-16 17:18:51 -0500
commit82df11e78d0baef7ffb7e7933c6fb830ffed087c (patch)
tree1b5f88c0bf39f98e16c888efc60a1976aaeb62d8 /util/coroutine-sigaltstack.c
parentfb7e7990342e59cf67dbd895c1a1e3fb1741df7a (diff)
downloadqemu-82df11e78d0baef7ffb7e7933c6fb830ffed087c.zip
qemu-82df11e78d0baef7ffb7e7933c6fb830ffed087c.tar.gz
qemu-82df11e78d0baef7ffb7e7933c6fb830ffed087c.tar.bz2
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/coroutine-sigaltstack.c')
0 files changed, 0 insertions, 0 deletions