]> Sergey Matveev's repositories - public-inbox.git/commit
lei: exit code in oneshot mode
authorEric Wong <e@80x24.org>
Wed, 20 Jan 2021 05:04:44 +0000 (14:04 +0900)
committerEric Wong <e@80x24.org>
Thu, 21 Jan 2021 03:29:17 +0000 (03:29 +0000)
commit19f20f44e325523cebe5665d887003a4f75cc1c0
tree8b28b5fc094c8d86884aa3f2df90798a7a5e2d56
parent3dde6fa1268e2f86f10f26b7d427598e582aed2a
lei: exit code in oneshot mode

waitpid() in DESTROY ends up setting $? for the exit status,
thus we must reap IPC children before calling CORE::exit.

This fixes t/lei-oneshot.t with TEST_RUN_MODE=0
lib/PublicInbox/LEI.pm