This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] for POSIX timer code
- From: george anzinger <george at mvista dot com>
- To: "libc-alpha at sources dot redhat dot com" <libc-alpha at sources dot redhat dot com>
- Date: Thu, 07 Mar 2002 16:24:45 -0800
- Subject: [PATCH] for POSIX timer code
- Organization: Monta Vista Software
Having set info.si_code to SI_TIMER it seems inappropriate to then set
union fields that relate to some other field. Here we suggest a change
to set the timer1 field to the timer ID. This is compatible with the
high-res-timers code which we hope to get in the kernel.
It seem highly unlikely that anyone would be using this info in the
current implementation.
-g
---
/usr/src/incoming/glibc/glibc-2.2.5-hr/linuxthreads/sysdeps/pthread/timer_routines.c~
Sat Apr 21 13:42:42 2001
+++
/usr/src/incoming/glibc/glibc-2.2.5-hr/linuxthreads/sysdeps/pthread/timer_routines.c
Thu Mar 7 16:16:55 2002
@@ -333,8 +333,7 @@
value. */
info.si_signo = timer->event.sigev_signo;
info.si_code = SI_TIMER;
- info.si_pid = timer->creator_pid;
- info.si_uid = getuid ();
+ info.si_timer1 = timer_ptr2id(timer);
info.si_value = timer->event.sigev_value;
INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, info.si_signo,
&info);
------------------------------------------------------
--
George george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/