On Fri, Aug 03, 2012 at 12:50:29PM -0700, Roland McGrath wrote: > Why add a new cancellation type? PTHREAD_CANCEL_DEFERRED is already fine. > You just need an extension function that is like pthread_testcancel but > clears and returns the state instead of triggering cancellation handlers.
The problem with that is, if a Hurd server internally calls a function that is a cancellation point, the calling thread will automatically exit before having a chance to reply to the client. A Hurd-specific type should allow the safe use of more standard functions. -- Richard Braun