From c9269ffcf5fef35fed54186453d92c133ccfb9e1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 18 Sep 2004 08:44:59 +0000 Subject: 2004-09-18 Roland McGrath * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to system call. --- sysdeps/unix/sysv/linux/waitid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/waitid.c b/sysdeps/unix/sysv/linux/waitid.c index 8dcee0c33c..21226df37e 100644 --- a/sysdeps/unix/sysv/linux/waitid.c +++ b/sysdeps/unix/sysv/linux/waitid.c @@ -30,7 +30,9 @@ static inline int do_waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options) { - return INLINE_SYSCALL (waitid, 4, idtype, id, infop, options); + /* The unused fifth argument is a `struct rusage *' that we could + pass if we were using waitid to simulate wait3/wait4. */ + return INLINE_SYSCALL (waitid, 5, idtype, id, infop, options, NULL); } # define NO_DO_WAITID -- cgit v1.2.3