finish copy_to_child.c