2004-09-27 Roland McGrath <roland@redhat.com>

* sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
	all three syscall uses, not just one!
This commit is contained in:
Roland McGrath 2004-09-28 00:42:52 +00:00
parent 9ea9b141fd
commit c8cde977f4

View File

@ -47,10 +47,11 @@ do_waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options)
{
static int waitid_works;
if (waitid_works > 0)
return INLINE_SYSCALL (waitid, 4, idtype, id, infop, options);
return INLINE_SYSCALL (waitid, 5, idtype, id, infop, options, NULL);
if (waitid_works == 0)
{
int result = INLINE_SYSCALL (waitid, 4, idtype, id, infop, options);
int result = INLINE_SYSCALL (waitid, 5,
idtype, id, infop, options, NULL);
if (result < 0 && errno == ENOSYS)
waitid_works = -1;
else