about summary refs log tree commit homepage
path: root/lib/PublicInbox/DS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-14 12:50:56 +0000
committerEric Wong <e@80x24.org>2023-09-14 20:52:59 +0000
commitc35b597daf2de0fe4bb7f752128dc9ded041ff8b (patch)
tree87527590160c0d2625dd78dc4d22f323d832d280 /lib/PublicInbox/DS.pm
parente21d23ad95d4a50880b6a8dbabfaceccac5c1a99 (diff)
downloadpublic-inbox-c35b597daf2de0fe4bb7f752128dc9ded041ff8b.tar.gz
This seems to avoid some DBI teardown segfaults on OpenBSD 7.3;
but there may be other places where something similar is necessary.
Diffstat (limited to 'lib/PublicInbox/DS.pm')
-rw-r--r--lib/PublicInbox/DS.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm
index d47df491..919a4b67 100644
--- a/lib/PublicInbox/DS.pm
+++ b/lib/PublicInbox/DS.pm
@@ -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
 #####################################################################