mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 23:30:07 +00:00
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:
parent
9ea9b141fd
commit
c8cde977f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user