Skip to main content

spawn_passing

Function spawn_passing 

Source
pub async fn spawn_passing(
    spec: &ProcessSpec,
    pass: Option<OwnedFd>,
) -> Result<OsProcess>
Expand description

Starts a process that inherits pass (open, at the same descriptor number); the parent’s copy is closed once the child has it. Used to hand a runner its end of the agent’s socket pair.

§Errors

Returns an I/O error if the log file can’t be opened, the descriptor can’t be made inheritable, or the program can’t be started.