socketutil

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

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

func RemoveStale(path string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL