This may fix sporadic test failures I've seen under FreeBSD 12.x
when using kqueue with EVFILT_SIGNAL to emulate Linux signalfd.
---
t/sigfd.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/sigfd.t b/t/sigfd.t
index 8fc8206c..0070ca73 100644
--- a/t/sigfd.t
+++ b/t/sigfd.t
@@ -23,6 +23,7 @@ SKIP: {
for my $s (qw(HUP TERM INT WINCH)) {
$sig->{$s} = sub { $hit->{$s}->{sigfd}++ };
}
+ PublicInbox::DS->Reset;
my $sigfd = PublicInbox::Sigfd->new($sig, 0);
if ($sigfd) {
ok($sigfd, 'Sigfd->new works');
@@ -40,6 +41,7 @@ SKIP: {
is($hit->{$s}->{normal}, undef,
'normal $SIG{$s} not fired');
}
+ PublicInbox::DS->Reset;
$sigfd = undef;
my $nbsig = PublicInbox::Sigfd->new($sig, 1);