Skip to main content

serve

Function serve 

Source
pub fn serve(socket_path: &str)
Expand description

Main daemon loop: spawn bash, accept connections, proxy commands. Called by reef daemon _serve (internal, not user-facing).

§Panics

Panics if bash.stdin or bash.stdout cannot be taken after spawning with Stdio::piped(). This is infallible in practice — take() only returns None if called twice, and we call it exactly once.