]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
ds: Reset at END
authorEric Wong <e@80x24.org>
Thu, 14 Sep 2023 12:50:56 +0000 (12:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 14 Sep 2023 20:52:59 +0000 (20:52 +0000)
This seems to avoid some DBI teardown segfaults on OpenBSD 7.3;
but there may be other places where something similar is necessary.

lib/PublicInbox/DS.pm

index d47df491e7b4e3a8064ad7868a166d65e635a65e..919a4b67f34a1d7327951b75d4f425d2b431673b 100644 (file)
@@ -55,6 +55,9 @@ our (
 
 Reset();
 
+# clobber everything explicitly to avoid DESTROY ordering problems w/ DBI
+END { Reset() }
+
 #####################################################################
 ### C L A S S   M E T H O D S
 #####################################################################