On Fri, 2003-09-19 at 00:41, Daniel Jacobowitz wrote: > <bits/libc-lock.h> is an installed header, and the public versions of > pthread_cleanup_push call these. I don't think we can do that.
I still haven't heard anything back from the hackers, but I looked at this a bit more and I think this patch should be safe after all. Although <bits/libc-lock.h> is installed, the only other header that refers to it is <bits/stdio-lock.h>, and that one doesn't make any use of cancellation cleanups. The public version of pthread_cleanup_push calls _pthread_cleanup_push directly, without going through __libc_cleanup_push, so again that should be ok. p.