MCPcopy Index your code
hub / github.com/containerd/containerd / deleteSocket

Function deleteSocket

integration/client/container_fuzz_test.go:202–208  ·  view source on GitHub ↗

deleteSocket() deletes the socket in the file system. This is needed because the socket occasionally will refuse a connection to it, and deleting it allows us to create a new socket when invoking containerd.New()

()

Source from the content-addressed store, hash-verified

200// refuse a connection to it, and deleting it allows us
201// to create a new socket when invoking containerd.New()
202func deleteSocket() error {
203 err := os.Remove(defaultAddress)
204 if err != nil {
205 return err
206 }
207 return nil
208}
209
210// updatePathEnv() creates an empty directory in which
211// the fuzzer will create the containerd socket.

Callers 2

checkIfShouldRestartFunction · 0.85
doFuzzFunction · 0.85

Calls 1

RemoveMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…