diff options
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 6 | ||||
-rw-r--r-- | linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 5a0ecb5f72..fddbbcec78 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +2000-04-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/getcpuclockid.c + (pthread_getcpuclockid): Don't compare thread_id with thread_self, + use thread_handle(). + 2000-04-16 Ulrich Drepper <drepper@redhat.com> * condvar.c (pthread_cond_timedwait_relative): Don't test for owner diff --git a/linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c b/linuxthreads/sysdeps/unix/sysv/linux/i386/getcpuclockid.c index 4fd99a3fde..90c08d55a8 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_id != thread_self ()) + if (thread_handle (thread_id) != thread_self ()) return EPERM; /* Store the number. */ |