On 16/09/2021 16:13, Dimitry Sibiryakov wrote:
> Adriano dos Santos Fernandes wrote 16.09.2021 21:08:
>> And this has 0 importance for the matter, considering that tools
>> vendors implement what the standard describes.
> 
>   We already had a discussion here that shown that atexit (and called
> from it PluginModule::doCleanup()) is fired after global destructors.
> 

And it's what is expected for us.

And it should happen if you called it before de constructors. Or it was
not done in this way?

Are there any published test? Did it was compiled with c++11?

I did another test (Linux only) with atexit together with shared
libraries (atexit used in executable and library) loaded with dlopen and
I confirm the standard and expected behavior.

When library was unloaded, atexit of it was called in correct moment and
atexit of executable also was called in correct moment when the
executable exit.


Adriano


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to