Re: [exim-dev] dlopen cleanup

Etusivu
Poista viesti
Vastaa
Lähettäjä: David Saez Padros
Päiväys:  
Vastaanottaja: Tony Finch
Kopio: exim-dev
Aihe: Re: [exim-dev] dlopen cleanup
Hi !!

> This functionality is built-in to the dynamic linker as part of its
> support for C++ static constructors and destructors. You can make use of
> this functionality with GCC's C extensions by using the destructor
> attribute on your cleanup function's declaration. For example:
>
> static void cleanup(void) __attribute__((destructor));


Seems that this does not work, maybe it's because exim does not call
dlclose for every dlopened library

--
Best regards ...

----------------------------------------------------------------
    David Saez Padros                http://www.ols.es
    On-Line Services 2000 S.L.       e-mail  david@???
    Pintor Vayreda 1                 telf    +34 902 50 29 75
    08184 Palau-Solita i Plegamans   movil   +34 670 35 27 53
----------------------------------------------------------------