mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
When a test times out, the spawned thread containing the cloud-hypervisor child process, iperf3/ethr sub processes, and all associated resources (TAP devices, file descriptors, hugepage reservations) is abandoned without cleanup. This attaches a cleanup routine that kills cloud-hypervisor, iperf3, and ethr processes on timeout, then waits briefly for the kernel to reclaim their resources. This prevents leaked processes from interfering with subsequent tests. Removes the existing TODO comment. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>