MCPcopy Index your code
hub / github.com/coder/coder / cleanupSocket

Function cleanupSocket

agent/agentsocket/socket_unix.go:47–49  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

45}
46
47func cleanupSocket(path string) error {
48 return os.Remove(path)
49}
50
51func isSocketAvailable(path string) bool {
52 if _, err := os.Stat(path); os.IsNotExist(err) {

Callers 1

CloseMethod · 0.70

Calls 1

RemoveMethod · 0.65

Tested by

no test coverage detected