Skip to main content

events_socket_path_beside

Function events_socket_path_beside 

Source
pub fn events_socket_path_beside(events_db: &Path) -> PathBuf
Expand description

Events daemon socket path, beside the events database it serves.

Derived from the events db path (not a process-global location, not a fixed name in the parent directory) so every events database gets its own daemon and socket: a shared socket would route events from any second database (another seat, a test tempdir) to whichever daemon happens to own it, persisting them beside the wrong main store. khive.db.events.db yields khive.db.events.sock; the daemon’s advisory lock is the same path with a .lock extension.