]> Sergey Matveev's repositories - public-inbox.git/commit
wwwlisting: do not rely on $? after ProcessPipe::CLOSE
authorEric Wong <e@80x24.org>
Thu, 26 Dec 2019 10:47:12 +0000 (10:47 +0000)
committerEric Wong <e@80x24.org>
Thu, 26 Dec 2019 10:47:42 +0000 (10:47 +0000)
commit3647997eaf49410bbf3e33bfb3874c611ab0c38b
tree9599e576f10534d59f468ca61f58eee2a4d9ce0a
parent200efc84f8acd59ae829655f281a125128c78b52
wwwlisting: do not rely on $? after ProcessPipe::CLOSE

ProcessPipe::CLOSE won't reliably set $? inside the event loop
if waitpid(..., WNOHANG) isn't successful.  So use a blocking
waitpid() call, here, and hope "git show-ref" exits promptly
since we've already drained its stdout.
lib/PublicInbox/WwwListing.pm