aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/timer_create.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-10-28 19:46:50 +0000
committerUlrich Drepper <drepper@redhat.com>2007-10-28 19:46:50 +0000
commitf160a450c930f214f218f0c975abf188d367716f (patch)
tree110fc0d723c02447cc18d452d4886aa88f870efc /nptl/sysdeps/unix/sysv/linux/timer_create.c
parent22c915ac42b6890383da4b1b0b63f9a15408a01c (diff)
downloadglibc-f160a450c930f214f218f0c975abf188d367716f.tar
glibc-f160a450c930f214f218f0c975abf188d367716f.tar.gz
glibc-f160a450c930f214f218f0c975abf188d367716f.tar.bz2
glibc-f160a450c930f214f218f0c975abf188d367716f.zip
[BZ #5204]
* crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware. * crypt/sha512c-test.c: Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/timer_create.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/timer_create.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_create.c b/nptl/sysdeps/unix/sysv/linux/timer_create.c
index 497068b554..a07234d7d1 100644
--- a/nptl/sysdeps/unix/sysv/linux/timer_create.c
+++ b/nptl/sysdeps/unix/sysv/linux/timer_create.c
@@ -206,6 +206,13 @@ timer_create (clock_id, evp, timerid)
syscall_clockid, &sev, &newp->ktimerid);
if (! INTERNAL_SYSCALL_ERROR_P (res, err))
{
+ /* Add to the queue of active timers with thread
+ delivery. */
+ pthread_mutex_lock (&__active_timer_sigev_thread_lock);
+ newp->next = __active_timer_sigev_thread;
+ __active_timer_sigev_thread = newp;
+ pthread_mutex_unlock (&__active_timer_sigev_thread_lock);
+
*timerid = (timer_t) newp;
return 0;
}