]> Sergey Matveev's repositories - public-inbox.git/commit
testcommon: DESTROY: wait for killed daemon
authorEric Wong <e@yhbt.net>
Sat, 11 Apr 2020 10:53:27 +0000 (10:53 +0000)
committerEric Wong <e@yhbt.net>
Wed, 15 Apr 2020 10:16:05 +0000 (10:16 +0000)
commit2e59372029f89ae0e9c68384d6bda0ad50704730
tree5e2234a946729a62f5b3354147168a18cf39e755
parentb3624fbc0a866e6d953ed8564284833ebfde2ec2
testcommon: DESTROY: wait for killed daemon

Otherwise, the waitpid(-1, 0) call in Xapcmd::process_queue()
may reap it in a subsequent test when using t/run.perl to reuse
processes for testing.

While we're at it, make Xapcmd::process_queue warn about unknown
PIDs in case other PIDs leak through to us in the future.
lib/PublicInbox/TestCommon.pm
lib/PublicInbox/Xapcmd.pm