diff options
author | Eric Wong <e@80x24.org> | 2019-01-29 21:35:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-29 22:02:46 +0000 |
commit | 91766bc4fe3e009c5c322ee3e3abd32cdb8ab01a (patch) | |
tree | f234ed216d967af43194319d651843e4d6c1067b /lib/PublicInbox/ViewVCS.pm | |
parent | eb522a29e437eda6de0d50c739d73f9e9ec4adbc (diff) | |
download | public-inbox-91766bc4fe3e009c5c322ee3e3abd32cdb8ab01a.tar.gz |
Proper ordering of destruction seems required to avoid segfaults at shutdown.
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r-- | lib/PublicInbox/ViewVCS.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index 63e503d8..85edf22f 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -26,6 +26,11 @@ my $hl = eval { PublicInbox::HlMod->new; }; +# we need to trigger highlight::CodeGenerator::deleteInstance +# in HlMod::DESTROY before the rest of Perl shuts down to avoid +# a segfault at shutdown +END { $hl = undef }; + my %QP_MAP = ( A => 'oid_a', B => 'oid_b', a => 'path_a', b => 'path_b' ); my $max_size = 1024 * 1024; # TODO: configurable my $enc_utf8 = find_encoding('UTF-8'); |