mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add a global registry that maps test names to process group IDs. The first child spawned for a test creates a new process group via setpgid(0, 0); subsequent children join it via setpgid(0, pgid). A single killpg(pgid, SIGKILL) tears down all processes the test spawned. Also add Guest.test_name, populated automatically from the current thread name at construction time. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>