[PATCH 10/37] qemuFDPassTransferMonitor: Close local copy of the FD as soon as it's passed to qemu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't want to keep the FDs open more than we need to.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux