]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
v2writable: done: force synchronous awaitpid
authorEric Wong <e@80x24.org>
Tue, 19 Nov 2024 21:47:52 +0000 (21:47 +0000)
committerEric Wong <e@80x24.org>
Wed, 20 Nov 2024 17:40:20 +0000 (17:40 +0000)
commit99fc3d76968aacaea55f5b98b5b5a4d2314bc97c
tree7b3458e395daa732b7862737848e75e3e6a92db3
parentf30f94236525a2360779f00ad56f82bff663a582
v2writable: done: force synchronous awaitpid

We need to shut down shards synchronously to reliably release
the inbox write lock when inside the DS event loop (as the
lei/store subprocess is, unlike most v2writable users).

This seems to fix long-running `lei import' failures to
lei/store after repeated tests.  It is a good idea anyways to
ensure exit status of shard workers are correct before returning
from ->done.
lib/PublicInbox/V2Writable.pm