PTHREAD_CANCEL_DEFERRED

David Xu davidxu at freebsd.org
Mon Aug 16 03:53:53 UTC 2010


Kostik Belousov wrote:

> Missed this, thank you for pointing it out. Updated patch is at
> http://people.freebsd.org/~kib//misc/cancel_defer.2.patch

I found SIGCANCEL is masked by
thr_cancel_deferred(THR_CANCEL_DEFERRED_ENABLE), issignal() does not
return the masked signal, so how a cancellation point syscall can be
interrupted by SIGCANCEL ? I think if a thread being canceled calls
msleep(PCATCH), it should find the signal and return EINTR.








More information about the freebsd-threads mailing list