aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index b4f33434b1..5c1c1e1298 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-05 Andreas Jaeger <aj@suse.de>
+
+ * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
+ (pthread_getcpuclockid): Correct test for ourselves.
+
2000-05-05 Ulrich Drepper <drepper@redhat.com>
* internals.h (struct _pthread_descr_struct): Reorganization.
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c b/linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c
index 90c08d55a8..b1a96705ac 100644
--- a/linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c
+++ b/linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c
@@ -27,7 +27,7 @@ int
pthread_getcpuclockid (pthread_t thread_id, clockid_t *clock_id)
{
/* We don't allow any process ID but our own. */
- if (thread_handle (thread_id) != thread_self ())
+ if (thread_handle (thread_id)->h_descr != thread_self ())
return EPERM;
/* Store the number. */