Documentation
¶
Overview ¶
Package busdiscover enumerates live bus daemons via per-AppID PID files protected by a process-lifetime advisory lock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle keeps the lifetime lock fd alive; OS releases on process exit.
func WritePIDFile ¶
WritePIDFile takes the alive lock and atomically writes pid + RFC3339 start time. Returns lockfile.ErrHeld if another bus holds the lock.
Click to show internal directories.
Click to hide internal directories.