+18
−2
+7
−1
Loading
PTHREAD_CANCEL_ENABLE is defined since the cancel state functions came in,
and curl takes that as the sign that pthread_cancel and the cleanup macros
exist (lib/curl_threads.c, asyn-thrdd.c): the ppc cross build of curl
failed on undeclared pthread_cancel/pthread_cleanup_push.
pthread_cancel() never cancels; curl ignores its result and its resolver
thread notices do_abort itself. pthread_cleanup_push/pop open and close a
block and run the handler on pop(nonzero).
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>