Wait for child processes