]> Sergey Matveev's repositories - public-inbox.git/commit
lei: keep $lei around until workers are reaped
authorEric Wong <e@80x24.org>
Mon, 1 Feb 2021 08:28:20 +0000 (22:28 -1000)
committerEric Wong <e@80x24.org>
Mon, 1 Feb 2021 11:38:14 +0000 (11:38 +0000)
commit59ff0aa24dc4c27fc05a36e97526ae4b0c163f65
tree11d809b8a37a96681d5c046e20549bbece2954eb
parenta480fead6bf174973289e326425dc82f609414e0
lei: keep $lei around until workers are reaped

This prevents SharedKV->DESTROY in lei-daemon from triggering
before DB handles are closed in lei2mail processes.  The
{each_smsg_not_done} pipe was not sufficient in this case:
that gets closed at the end of the last git_to_mail callback
invocation.
lib/PublicInbox/IPC.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiXSearch.pm