MCPcopy Index your code
hub / github.com/codebench-dev/worker / deleteVMMSockets

Function deleteVMMSockets

main.go:100–113  ·  view source on GitHub ↗

TODO this isn't called for whatever reason

()

Source from the content-addressed store, hash-verified

98
99// TODO this isn't called for whatever reason
100func deleteVMMSockets() {
101 log.Debug("cc")
102 dir, err := ioutil.ReadDir(os.TempDir())
103 if err != nil {
104 log.WithError(err).Error("Failed to read directory")
105 }
106 for _, d := range dir {
107 log.WithField("d", d.Name()).Debug("considering")
108 if strings.Contains(d.Name(), fmt.Sprintf(".firecracker.sock-%d-", os.Getpid())) {
109 log.WithField("d", d.Name()).Debug("should delete")
110 os.Remove(path.Join([]string{"tmp", d.Name()}...))
111 }
112 }
113}
114
115func installSignalHandlers() {
116 go func() {

Callers 2

mainFunction · 0.85
installSignalHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected