pub fn monitor( pidfd: OwnedFd, workspace: &Workspace, plan: &Plan, ) -> Result<Output>
Monitor the child process and collect output.