On 08/13/2011 08:43 PM, Rich Felker wrote:
Could you please explain what effect you're trying to achieve? Cleanup
handlers are rather useless unless you're using pthread_cancel.

Rich

I'm testing pthread_cancel of course. However, I have since* re-read the spec, and noticed it wouldn't block pthread_cancel anyway:
"The cancellation processing in the target thread shall run asynchronously with respect to the calling thread returning from pthread_cancel()."
So I'm looping it (will post the fresh pthread_eintr in a sec).
Luka

*The last mail is an old one, I just wasn't able to send it until now