Avoinding calls to __libc_enable_asynccancel

Frederik Deweerdt frederik.deweerdt@xprog.eu
Thu Oct 28 13:49:00 GMT 2010


Hi all,

I was surprised that in spite of the current thread not being cancellable:
 ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
calls to __libc_{en,dis}able_asynccancel are issued.

What makes those calls mandatory even when the current thread is not
cancelable?

Thanks,
Frederik



More information about the Libc-help mailing list