]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux: wait4: Fix incorrect return value comparison
authorAlistair Francis <alistair.francis@wdc.com>
Mon, 6 Apr 2020 17:56:26 +0000 (10:56 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 14 Apr 2020 16:16:54 +0000 (09:16 -0700)
commit00515ea3a15703a3d196c1d1bd372214abc990ad
tree5d4e91909a302c65b58d0bf058915d6d5fd611db
parent2102bec9829589b303d531ed12630808b4886f56
linux: wait4: Fix incorrect return value comparison

Patch 600f00b "linux: Use long time_t for wait4/getrusage" introduced
two bugs:
 - The usage32 struct was set if the wait4 syscall had an error.
 - For 32-bit systems the usage struct was set even if it was specified
   as NULL.

This patch fixes the two issues.
sysdeps/unix/sysv/linux/wait4.c