FProcState::Wait

Waits for the process to end. Has a side effect (stores child's return code).