Async cacellation and pthread_cleanup_push
Petr Vorel
pvorel@suse.cz
Thu Aug 5 10:43:37 GMT 2021
Hi all,
> * Andreas Schwab:
> > On Aug 04 2021, Florian Weimer wrote:
> >> * Andreas Schwab:
> >>> Is pthread_cleanup_push supposed to work together with async
> >>> cancellation?
> >> In our implementation? I think so.
> > I don't see how that can work with -fexceptions or in C++, though. Is
> > that supported?
> I think it is supposed to work, but it probably is unreliable.
> >> POSIX doesn't require it, though.
> > Chapter and verse?
> 2.9.5 Thread Cancellation, Thread Cancellation Cleanup Handlers and
> Async-Cancel Safety. The first section calls pthread_cleanup_push a
> function, the second section does not list it.
> > Then the LTP test is INVALID.
> Which test? It could be a test for Linux extension.
FYI tests in testcases/open_posix_testsuite/ are POSIX tests
(not Linux specific).
Kind regards,
Petr
> Thanks,
> Florian
More information about the Libc-alpha
mailing list