Skip to content

Commit

Permalink
Fix Virtlet crash upon killing both virtlet and qemu processes
Browse files Browse the repository at this point in the history
Don't store bogus File objects in the metadata db.
  • Loading branch information
Ivan Shvedunov committed Feb 20, 2019
1 parent 9ec2870 commit 80902d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/network/csn.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ type InterfaceDescription struct {
// namespace or to control file in sysfs for sr-iov VF.
// It may be nil if the interface was recovered after restarting Virtlet.
// It's only needed during the initial VM startup.
Fo *os.File
// The json tag is here so that bogus File object doesn't get stored
// in the metadata db.
Fo *os.File `json:"-"`
// Name contains original interface name for sr-iov interface.
Name string
// HardwareAddr contains original hardware address for CNI-created
Expand Down

0 comments on commit 80902d0

Please sign in to comment.