public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: george anzinger <george@mvista.com>
To: Joy Mukherjee <jmukherj@vt.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: pthread_sighandler
Date: Tue, 19 Mar 2002 09:33:41 -0800	[thread overview]
Message-ID: <3C977675.AEB0C62B@mvista.com> (raw)
In-Reply-To: <3CA40295@zathras>

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/

      reply	other threads:[~2002-03-19 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19  4:56 pthread_sighandler Joy Mukherjee
2002-03-19 17:33 ` george anzinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C977675.AEB0C62B@mvista.com \
    --to=george@mvista.com \
    --cc=jmukherj@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox