PT_STATE_DEAD
error = (target && target->pt_state != PT_STATE_DEAD) ? 0 : ESRCH;
thread->pt_state = PT_STATE_DEAD;