]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
git_async_cat: don't mis-abort replaced process
authorEric Wong <e@80x24.org>
Mon, 20 Feb 2023 08:19:43 +0000 (08:19 +0000)
committerEric Wong <e@80x24.org>
Mon, 20 Feb 2023 17:20:52 +0000 (17:20 +0000)
commit0209a6a96c44fbecd4a13325a7cd109da86a147f
tree7700fefcba467adaa4ad1b970c8f67f043a88527
parent3cc3c62d25a452414c6e03540dd941099cda7b20
git_async_cat: don't mis-abort replaced process

When a git process gets replaced (e.g. due to new
epochs/alternates), we must be careful and not abort the wrong
one.

I suspect this fixes the problem exacerbated by --batch-command.
It was theoretically possible w/o --batch-command, but it seems
to have made it surface more readily.

This should fix "Failed to retrieve generated blob" errors from
PublicInbox/ViewVCS.pm appearing in syslog

Link: https://public-inbox.org/meta/20230209012932.M934961@dcvr/
lib/PublicInbox/GitAsyncCat.pm