mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
qemuFDPassTransferMonitor: Close local copy of the FD as soon as it's passed to qemu
We don't want to keep the FDs open more than we need to. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c8f255c10e
commit
6b3373ffa5
@ -278,6 +278,7 @@ qemuFDPassTransferMonitor(qemuFDPass *fdpass,
|
||||
return -1;
|
||||
}
|
||||
|
||||
VIR_FORCE_CLOSE(fdpass->fds[i].fd);
|
||||
fdpass->passed = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user