ADOPTING
if (!set_smach_state(dsmp, ADOPTING))
oldstate == ADOPTING)
if (oldstate == ADOPTING)
case ADOPTING:
if (oldstate != ADOPTING) {