signal handler question

From: Steven Wong (gndm_2001_at_yahoo.com)
Date: 10/02/03


Date: 2 Oct 2003 07:12:01 -0700

Hi,

I was looking at sigaction(), and according to the man pages (for IRIX
6.5):

      The sigaction POSIX service allows for per-thread handlers to be
      installed for catching synchronous signals. It is called in a
      multithreaded process to establish thread specific actions for
      such signals.

So would calling sigaction set the signal handlers for the calling
thread? how else could you specify which thread the handler's for?

Also, there is another sigaction() listed in the tech pubs library for
IRIX 6.5, which sends signals to processes. How would you know which
one your calling? would it depend on whether or not pthreads were
linked?

If thread-specific handlers were set up, is it possible that sending
the SIGKILL signal to a thread (using pthread_kill()) would not kill
the whole process?

Thanks!



Relevant Pages

  • Re: signal handler question
    ... allows you to set the signal handler for the whole process. ... > I was looking at sigaction(), and according to the man pages (for IRIX ... > installed for catching synchronous signals. ... > So would calling sigaction set the signal handlers for the calling ...
    (comp.sys.sgi.misc)
  • Re: How to handle the same signal multiple times
    ... I cannot avoid the SIGSEGV/SIGBUS: the application probes for a ... signal handlers. ... almost any description of the Unix signals ... sigaction() reports the signal as handled when in reality it is ...
    (comp.os.linux.development.system)
  • Re: Most seriously congested station
    ... Please excuse my ignorance, but what's "calling on", and how does this ... Calling on allows two or more trains into the section between ... can only be one train between signals, so there can only be one ... train at the platform at any time. ...
    (uk.railway)
  • RE: ISS Advisory: Remote Compromise Vulnerability in Apache HTTP Server
    ... Well, a signal handler *is* a way of changing the instruction pointer, so it ... - You have a vulnerability which lets you execute an arbitrary sigaction ... simply messing with the signal handlers for fatal signals so it can't clean ... Note that with sigaction, ...
    (Vuln-Dev)
  • Re: [Lse-tech] Re: scalability of signal delivery for Posix Threads
    ... >>Since signals are sent much more often than sigaction() is called, ... I guess a seqlock could be made to work. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)