diff options
author | Eric Wong <e@80x24.org> | 2020-12-31 13:51:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-01 05:00:40 +0000 |
commit | 71484e7281f608bf21a9b9ded043b26e55660529 (patch) | |
tree | 9b398fad43accf3bf16a921df3f7ae48da02be38 /lib/PublicInbox/SearchIdxShard.pm | |
parent | 3dab16e671b344dbfa925ecc640518532a88b16a (diff) | |
download | public-inbox-71484e7281f608bf21a9b9ded043b26e55660529.tar.gz |
searchidxshard: call DS->Reset at worker start
The daemon for the local email interface will be inside the DS->EventLoop. -watch currently doesn't trigger this bug since it doesn't enable parallelism, but it may in the future.
Diffstat (limited to 'lib/PublicInbox/SearchIdxShard.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdxShard.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm index 87b0bad6..a41477cd 100644 --- a/lib/PublicInbox/SearchIdxShard.pm +++ b/lib/PublicInbox/SearchIdxShard.pm @@ -34,6 +34,7 @@ sub spawn_worker { my $pid = fork; defined $pid or die "fork failed: $!\n"; if ($pid == 0) { + eval { PublicInbox::DS->Reset }; # these signals are localized in parent $SIG{$_} = 'IGNORE' for (qw(TERM INT QUIT)); PublicInbox::Sigfd::sig_setmask($oldset); |