Implement waitpid in terms of wait4

System Internals / glibc - Adhemerval Zanella [linaro.org] - 19 December 2019 19:11 EST

This also consolidate all waitpid implementations.

Checked on x86_64-linux-gnu.

848791557b Implement waitpid in terms of wait4
include/sys/wait.h | 1 +
posix/wait4.c | 1 +
posix/waitpid.c | 13 ++----------
sysdeps/mach/hurd/wait4.c | 1 +
sysdeps/unix/bsd/waitpid.c | 42 ---------------------------------------
sysdeps/unix/sysv/linux/wait4.c | 1 +
sysdeps/unix/sysv/linux/waitpid.c | 34 -------------------------------
7 files changed, 6 insertions(+), 87 deletions(-)

Upstream: sourceware.org


  • Share