pub(crate) fn spawn_in_process(
service: CfsctlService,
) -> Result<(Connection, JoinHandle<()>)>Expand description
Spawn a CfsctlService in-process over a Unix socket pair for testing.
Returns a connected client [zlink::unix::Connection] and a
std::thread::JoinHandle for the server thread.
Mirrors the pattern in composefs-storage’s spawn_in_process: the zlink
server is !Send so it runs on a dedicated OS thread with its own
current-thread Tokio runtime and [tokio::task::LocalSet].
The server thread exits when the client connection is closed.