]> Sergey Matveev's repositories - public-inbox.git/commit
gcf2: fix loading at runtime
authorEric Wong <e@80x24.org>
Mon, 20 Sep 2021 13:00:33 +0000 (13:00 +0000)
committerEric Wong <e@80x24.org>
Mon, 20 Sep 2021 19:15:56 +0000 (19:15 +0000)
commitc9c1aabe239378e50043e2a3d2e11c4e166cdda0
tree5fd8808eccda68e15f1567896ad324f513f489da
parent41c3eed65eb03256b0916cfdbf43723e070a633a
gcf2: fix loading at runtime

We need to waitpid synchronously on pkg-config to use $?.

When loading Gcf2 inside the event loop, implicit dwaitpid
done by PublicInbox::ProcessPipe would not call waitpid in
time to zero $?.  This was causing one of my -httpd to
occasionally fall back to git(1) instead of using Gcf2.

This was noted in:
Link: https://public-inbox.org/meta/20210914085322.25517-1-e@80x24.org/
lib/PublicInbox/Gcf2.pm