if (cb->__next) longjmp((void *)cb->__next->__jb, 1);
self = pthread_self();
- if (self->cancel) self->result = PTHREAD_CANCELED;
LOCK(&self->exitlock);
new->detached = attr->_a_detach;
new->attr = *attr;
new->unblock_cancel = self->cancel;
+ new->result = PTHREAD_CANCELED;
memcpy(new->tlsdesc, self->tlsdesc, sizeof new->tlsdesc);
new->tlsdesc[1] = (uintptr_t)new;
stack = (void *)((uintptr_t)new-1 & ~(uintptr_t)15);