> 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.

I see.  So the meaning of the new type is that normal cancellation
handling is never triggered, instead the "cancelled" flag can only be
polled by the explicit check API.  What do cancellable functions do,
then?  Do they just fail with ECANCELED while leaving the cancelled
flag set?

I'd call this new type by a name that's descriptive of what it means,
rather than what programs are expected to use it.  For example,
PTHREAD_CANCEL_POLLED.


Thanks,
Roland

Reply via email to