Re: [PATCH] tests/qtest: Poll on waitpid() for a while before sending SIGKILL

2023-01-12 Thread Philippe Mathieu-Daudé
On 12/1/23 10:54, Daniel P. Berrangé wrote: On Thu, Jan 12, 2023 at 10:18:01AM +0100, Philippe Mathieu-Daudé wrote: On 11/1/23 23:30, Stefan Berger wrote: To prevent getting stuck on waitpid() in case the target process does not terminate on SIGTERM, poll on waitpid() for 10s and if the target

Re: [PATCH] tests/qtest: Poll on waitpid() for a while before sending SIGKILL

2023-01-12 Thread Daniel P . Berrangé
On Thu, Jan 12, 2023 at 10:18:01AM +0100, Philippe Mathieu-Daudé wrote: > On 11/1/23 23:30, Stefan Berger wrote: > > To prevent getting stuck on waitpid() in case the target process does > > not terminate on SIGTERM, poll on waitpid() for 10s and if the target > > process has not changed state unti

Re: [PATCH] tests/qtest: Poll on waitpid() for a while before sending SIGKILL

2023-01-12 Thread Philippe Mathieu-Daudé
On 11/1/23 23:30, Stefan Berger wrote: To prevent getting stuck on waitpid() in case the target process does not terminate on SIGTERM, poll on waitpid() for 10s and if the target process has not changed state until then send a SIGKILL to it. Signed-off-by: Stefan Berger --- tests/qtest/libqte

Re: [PATCH] tests/qtest: Poll on waitpid() for a while before sending SIGKILL

2023-01-12 Thread Daniel P . Berrangé
On Wed, Jan 11, 2023 at 05:30:18PM -0500, Stefan Berger wrote: > To prevent getting stuck on waitpid() in case the target process does > not terminate on SIGTERM, poll on waitpid() for 10s and if the target > process has not changed state until then send a SIGKILL to it. > > Signed-off-by: Stefan

[PATCH] tests/qtest: Poll on waitpid() for a while before sending SIGKILL

2023-01-11 Thread Stefan Berger
To prevent getting stuck on waitpid() in case the target process does not terminate on SIGTERM, poll on waitpid() for 10s and if the target process has not changed state until then send a SIGKILL to it. Signed-off-by: Stefan Berger --- tests/qtest/libqtest.c | 18 +- 1 file chang