Skip to main content

exec_retrying

Function exec_retrying 

Source
pub fn exec_retrying(command: &mut Command) -> Error
Expand description

What: Replace this process with the command, trying again when the replacement is refused for lack of processes. Returns only the error that ended the attempts. Why: exec returns only when it failed, and a failed exec replaced nothing.

In TS you’d write (pseudocode):

// process.execve(command) with the same retry