develooper Front page | perl.perl5.porters | Postings from August 2001

END {} blocks run in perl_run

Thread Next
From:
Arthur Bergman
Date:
August 10, 2001 06:25
Subject:
END {} blocks run in perl_run
Message ID:
B799AD67.2F0D%arthur@contiller.se

Why does perl_run and not perl_destruct call the PL_endav CVs? This makes
embeded applications which never perl_run only call_sv never get to run the
END blocks.

I discovered this when disabling END blocks for threads, but discovered that
you realy don't need to since the thread is called in a call_sv and never
does a perl_run().

If noone minds I can submit a patch that moves END block execution to
perl_destruct()

-- 
Arthur


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About