Added wait_for_child_process() helper to main.c.