2000-05-05 Andreas Jaeger <aj@suse.de>
authorAndreas Jaeger <aj@suse.de>
Fri, 5 May 2000 21:32:19 +0000 (21:32 +0000)
committerAndreas Jaeger <aj@suse.de>
Fri, 5 May 2000 21:32:19 +0000 (21:32 +0000)
* sysdeps/unix/sysv/linux/i386/getcpuclockid.c
(pthread_getcpuclockid): Correct test for ourselves.
2000-05-05  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/i386/getcpuclockid.c
(pthread_getcpuclockid): Correct test for ourselves.

linuxthreads/ChangeLog
linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c

index b4f3343..5c1c1e1 100644 (file)
@@ -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.
index 90c08d5..b1a9670 100644 (file)
@@ -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.  */