lost patch to cleanup/cancel code?
Vladimir Nesic
vnesic at dkts.co.yu
Fri Dec 6 15:10:30 UTC 2002
> At least a week ago someone posted or email me a one line
> patch to what I remember being the POSIX cancel or cleanup
> routines. But I can't find it anymore. Could someone please
> repost it so I can review and commit it?
>
> THanks.
This is the patch. I am not sure that it is 100% safe, but my aplication
stopped crashing after the change.
------------ Original message: -----------------
I have found an error preventing pthread_cleanup_pop() and
_POSIX_Thread_cancel_run() from running correctly.
In both functions I have changed line:
handler = (POSIX_Cancel_Handler_control *) _Chain_Tail( handler_stack );
to:
handler = (POSIX_Cancel_Handler_control *) _Chain_Tail( handler_stack
)->previous;
and now everything seams to work OK.
Vlada
More information about the users
mailing list