From 62c6a35aeb46e89f5ff6764e4472aabae31031e4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 23 Oct 2001 20:37:53 +0000 Subject: Added eval { } around the DynaLoader::dl_unload_file() calls to get rid of the errors it's printing with perl < 5.6. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1900 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/perl-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/perl/perl-core.c b/src/perl/perl-core.c index 432a4283..eaaba100 100644 --- a/src/perl/perl-core.c +++ b/src/perl/perl-core.c @@ -123,7 +123,7 @@ void perl_scripts_deinit(void) /* Unload all perl libraries loaded with dynaloader */ perl_eval_pv("foreach my $lib (@DynaLoader::dl_modules) { if ($lib =~ /^Irssi\\b/) { $lib .= '::deinit();'; eval $lib; } }", TRUE); - perl_eval_pv("foreach my $lib (@DynaLoader::dl_librefs) { DynaLoader::dl_unload_file($lib); }", TRUE); + perl_eval_pv("eval { foreach my $lib (@DynaLoader::dl_librefs) { DynaLoader::dl_unload_file($lib); } }", TRUE); /* perl interpreter */ perl_destruct(my_perl); -- cgit v1.2.3