pub async fn run_to_completion(handle: Child) -> Result<ExitStatus>Expand description
Wait for the child process to complete, handling signals and error codes.
Note that this registers handles to ignore some signals in the parent process. This is safe as long as the command is the last thing that runs in this process; otherwise, we’d need to restore the default signal handlers after the command completes.