fold create_child_structs into init_shm