wait4: fix missing rusage on x32 due to wrong success condition
authorAlexey Izbyshev <izbyshev@ispras.ru>
Mon, 6 Mar 2023 08:59:21 +0000 (11:59 +0300)
committerRich Felker <dalias@aerifal.cx>
Tue, 11 Apr 2023 13:23:44 +0000 (09:23 -0400)
commitc1b42c4a3a0324ec25877980f59db233fa420925
tree85fb1a9f254a6b8d98329135e2f60ea1bda1f729
parent9b12982d52c5bc5b0158c07dfdbd5485f3a773a0
wait4: fix missing rusage on x32 due to wrong success condition

Resource usage data is filled by the kernel only when wait4 returns
a pid, i.e. a positive value.

Commit 5850546e9669f793aab61dfc7c4f2c1ff35c4b29 introduced this bug,
possibly because of copy-pasting from getrusage.
src/linux/wait4.c