Expand description
Socket name resolution and bind. interprocess handles the
platform-specific bits; this module just adds the stale-socket probe.
Functions§
- accept
- bind_
listener - Bind the daemon’s listener. Returns
Err(CliError::DaemonAlreadyRunning)if a probe shows a live peer; otherwise overwrites stale sockets. - probe_
peer - Connect-and-probe: send a Status request with a short read timeout. Returns Ok if a peer answered, Err otherwise. Used to differentiate “stale socket file” from “daemon already running”.
- socket_
name - Build the platform-appropriate name for the current user’s daemon.
- socket_
name_ string