Skip to main content

process_replace_current_image

Function process_replace_current_image 

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

Replace this process’s image with command.

Returns only on failure: on success execve has already replaced the program and there is nothing left to return to. That is why the signature yields io::Error rather than io::Result<()> – an Ok would name a state that cannot be observed.