aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/aio_sigqueue.c4
-rw-r--r--sysdeps/unix/sysv/linux/aio_sigqueue.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/generic/aio_sigqueue.c b/sysdeps/generic/aio_sigqueue.c
index 0a871e24d9..bc703518d4 100644
--- a/sysdeps/generic/aio_sigqueue.c
+++ b/sysdeps/generic/aio_sigqueue.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +23,7 @@
#include "aio_misc.h"
int
-__aio_sigqueue (int sig, const union sigval val)
+__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
{
__set_errno (ENOSYS);
return -1;
diff --git a/sysdeps/unix/sysv/linux/aio_sigqueue.c b/sysdeps/unix/sysv/linux/aio_sigqueue.c
index 0500b3fbfa..94a8ce0d2a 100644
--- a/sysdeps/unix/sysv/linux/aio_sigqueue.c
+++ b/sysdeps/unix/sysv/linux/aio_sigqueue.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -32,9 +32,10 @@ extern int __syscall_rt_sigqueueinfo (int, int, siginfo_t *);
/* Return any pending signal or wait for one for the given time. */
int
-__aio_sigqueue (sig, val)
+__aio_sigqueue (sig, val, caller_pid)
int sig;
const union sigval val;
+ pid_t caller_pid;
{
siginfo_t info;
@@ -42,7 +43,7 @@ __aio_sigqueue (sig, val)
info.si_signo = sig;
info.si_errno = 0;
info.si_code = SI_ASYNCIO;
- info.si_pid = getpid ();
+ info.si_pid = caller_pid;
info.si_uid = getuid ();
info.si_value = val;