[PATCH 10/37] qemuFDPassTransferMonitor: Close local copy of the FD as soon as it's passed to qemu
Peter Krempa
pkrempa at redhat.com
Tue May 10 15:19:46 UTC 2022
We don't want to keep the FDs open more than we need to.
Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
src/qemu/qemu_fd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/qemu/qemu_fd.c b/src/qemu/qemu_fd.c
index cbdf1c938f..6e3a7ca491 100644
--- a/src/qemu/qemu_fd.c
+++ b/src/qemu/qemu_fd.c
@@ -276,6 +276,7 @@ qemuFDPassTransferMonitor(qemuFDPass *fdpass,
return -1;
}
+ VIR_FORCE_CLOSE(fdpass->fds[i].fd);
fdpass->passed = true;
}
--
2.35.1
More information about the libvir-list
mailing list