TODO this isn't called for whatever reason
()
| 98 | |
| 99 | // TODO this isn't called for whatever reason |
| 100 | func 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 | |
| 115 | func installSignalHandlers() { |
| 116 | go func() { |
no outgoing calls
no test coverage detected