Re: pthread_sighandler

george anzinger (george@mvista.com)
Tue, 19 Mar 2002 09:33:41 -0800


Joy Mukherjee wrote:
>
> hi !
> I apologize for this this probably inappropriate question but i am writing as
> a last option - how can I know at which instruction (the IP) a thread was
> interrupted by SIGALRM ? Thank you very much and sorry once again .
>
I am not going to do all your research for you, but you just need to set
up a signal handler for SIGALARM with the capability of recovering the
process state. I think this is the third parameter in the handler
call. You will need to look at the signal man pages to find out how to
do this and, most likely you will need to find the header file that
describes the state structure to figure out what member has what you
want.
-- 
George           george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/