Skip to main content

Module ipc

Module ipc 

Source
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