Remove unnecessary loop from child_exit_callback()