From: Eric Wong Date: Thu, 14 Sep 2023 12:50:56 +0000 (+0000) Subject: ds: Reset at END X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c35b597daf2de0fe4bb7f752128dc9ded041ff8b;p=thirdparty%2Fpublic-inbox.git ds: Reset at END This seems to avoid some DBI teardown segfaults on OpenBSD 7.3; but there may be other places where something similar is necessary. --- diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index d47df491e..919a4b67f 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 #####################################################################