Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + var ErrLocked = errors.New("sys: lock file is already held") + func AcquireLock(lockPath string) (*os.File, error) + func AcquireLockWithRetry(ctx context.Context, lockPath string, timeout, interval time.Duration) (*os.File, error) + func ListenUnix(ctx context.Context, socketPath string) (net.Listener, error) + func LockHolderPID(lockPath string) (int, bool) + func ReleaseLock(f *os.File) error + func WaitForLockRelease(ctx context.Context, lockPath string, timeout, interval time.Duration) error