develooper Front page | perl.perl5.porters | Postings from February 2000

Re: [PATCH 5.5.660] ExtUtils::DynaLoader dl_unload_file() patch

Alan Burlison
February 29, 2000 13:42
Re: [PATCH 5.5.660] ExtUtils::DynaLoader dl_unload_file() patch
Message ID:
Ilya Zakharevich wrote:

> > 3.  Modified dl_generic_private_init() in dlutils.c to install
> > Perl_call_atexit() handler that calls dl_unload_all_files() when the
> > interpreter exits.
> Is it good enough?  What is the semantic of loading/unloading DLL?
> What happens to initialized/uninitialized data?  Is it *guarantied* to
> be reset on the next loading?

On Solaris, if you have defined a .fini it will be called on dlclose(). 
Failing that, it just gets munmap'd, and any associated data will be

Alan Burlison Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About