mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
firecracker: Close the vsock vhostfd
Unlike QEMU firecracker cannot accept a fd as part of the REST API. Close the vsock vhostfd close to the point where we launch the VM. Note: This is still racy. Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
This commit is contained in:
parent
e65bafa793
commit
22ebc09f00
@ -462,6 +462,10 @@ func (fc *firecracker) fcAddVsock(vs kataVSOCK) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
//Still racy. There is no way to send an fd to the firecracker
|
||||
//REST API. We could release this just before we start the instance
|
||||
//but even that will not eliminate the race
|
||||
vs.vhostFd.Close()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user