about summary refs log tree commit diff
path: root/nptl/sysdeps
diff options
context:
space:
mode:
authorSuzuki Poulose <suzuki@in.ibm.com>2009-09-02 19:58:50 -0700
committerUlrich Drepper <drepper@redhat.com>2009-09-02 19:58:50 -0700
commit38eb61366303c2857f1b00785757bc21da983d70 (patch)
tree01b722f0d7877b6f5e4cd0cc51370eee3f3c7c0f /nptl/sysdeps
parent2eeb9a5d73bd86261b69e61955741e3ce86c28f6 (diff)
downloadglibc-38eb61366303c2857f1b00785757bc21da983d70.tar.gz
glibc-38eb61366303c2857f1b00785757bc21da983d70.tar.xz
glibc-38eb61366303c2857f1b00785757bc21da983d70.zip
Fix timer_create to initialize timer_t properly.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/timer_create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_create.c b/nptl/sysdeps/unix/sysv/linux/timer_create.c
index a07234d7d1..cdf127cb44 100644
--- a/nptl/sysdeps/unix/sysv/linux/timer_create.c
+++ b/nptl/sysdeps/unix/sysv/linux/timer_create.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003,2004, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2003,2004, 2007, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -167,6 +167,7 @@ timer_create (clock_id, evp, timerid)
 	      /* Copy the thread parameters the user provided.  */
 	      newp->sival = evp->sigev_value;
 	      newp->thrfunc = evp->sigev_notify_function;
+	      newp->sigev_notify = SIGEV_THREAD;
 
 	      /* We cannot simply copy the thread attributes since the
 		 implementation might keep internal information for