mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue