@samitouri / QOSamiQemu / commits / ecc96ec750

system/exit-with-parent: Close the file descriptor before exit

On macOS we leak the open file descriptor in the background thread. Close it before returning. Link: https://lists.gnu.org/archive/html/qemu-devel/2026-05/msg04286.html Reported-by: Thomas Huth Fixes: commit 886898baad ("Implement -run-with exit-with-parent=on") Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260518184333.8505-1-rjones@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Richard W.M. Jones committed Oct 1, 2025 at 18:40 UTC ecc96ec75007012109eba772a66e2697114ba969
1 file changed +1
system/exit-with-parent.c
+1
@@ -109,6 +109,7 @@ exit_with_parent_loop(void *vp)
109 /* Behave like Linux and FreeBSD above, as if SIGTERM was sent */
110 qemu_system_killed(SIGTERM, ppid);
111 }
112 + close(fd);
113
114 return NULL;
115 }