mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03: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:
@ -47,10 +47,11 @@ do_waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options)
|
|||||||
{
|
{
|
||||||
static int waitid_works;
|
static int waitid_works;
|
||||||
if (waitid_works > 0)
|
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)
|
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)
|
if (result < 0 && errno == ENOSYS)
|
||||||
waitid_works = -1;
|
waitid_works = -1;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user