socket_noabstract.go 275 B

1234567891011121314
  1. //go:build !windows && !linux
  2. package socket
  3. import (
  4. "os"
  5. "path/filepath"
  6. )
  7. func socketName(basename string) string {
  8. // Because abstract sockets are unavailable, use a socket path in the
  9. // system temporary directory.
  10. return filepath.Join(os.TempDir(), basename)
  11. }