Skip to main content

run_ipc_server

Function run_ipc_server 

Source
pub fn run_ipc_server(
    socket_path: String,
    listener: UnixListener,
    ctx: ServerCtx,
) -> JoinHandle<()> ⓘ
Expand description

Run the Unix-domain-socket IPC server until cancelled (or task panics).

Mirrors the Windows accept loop above. The protocol on the wire is identical (newline-delimited JSON Command / Event) so handle_connection is shared between platforms via generics.

The listener is passed in pre-bound by the caller so a collision (a second launcher pointing at the same data dir) can be surfaced synchronously before any children spawn. (Same Phase B.6 contract as the Windows path.)