Documentation
¶
Overview ¶
Package socketutil provides safe filesystem operations for Unix domain sockets shared across the clank-host and clankd binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveStale ¶
RemoveStale unlinks path only if it exists AND is a Unix domain socket. Returns nil if path does not exist. Returns an error if path exists but is some other kind of file (regular file, directory, symlink, etc.) so callers cannot accidentally clobber user data via a bad --socket value or a hand-replaced file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.