Re: blocking signals in signal handler -- True or False quiz

From: Andrew Gierth (andrew@erlenstar.demon.co.uk)
Date: 04/25/03


From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
Date: 25 Apr 2003 00:58:10 +0100


>>>>> "Marc" == Marc Rochkind <rochkind@basepath.com> writes:

 Marc> Is the following statement true or false and, if false, why:

 Marc> "If, when sigaction is called to establish a signal handler for
 Marc> signal S, the sa_mask member of the sigaction structure is
 Marc> filled and the SA_SIGINFO flag is clear, no other signal
 Marc> handler can execute concurrently when signal S is caught."

no other signal handler can _interrupt_ the one for signal S unless
the handler expressly unmasks a signal. In a multithreaded program,
another thread can (in some implementations) take a signal while the
handler is still executing in the first thread.

-- 
Andrew.
comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>


Relevant Pages

  • Re: cross-thread operation
    ... If you move it into a handler on the Load event, then it will get fired when ... Best of luck, ... Marc ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: sigaction - how to invoke previous sigaction handler
    ... handler in one of the shared libs gets a signal, ... E.g. main does sigaction, calls shlib1, which does sigaction; ... struct sigaction sigact; ... isuer gets control and the sig handler does NOT get anything resulting ...
    (comp.unix.programmer)
  • Re: Possible bug on signal.h
    ... I'm trying to modify UML so I'm using kernel headers ... >> The problem comes when you define a struct sigaction on a user program ... > handler, then you make an in-kernel driver. ... A page-fault occurs because the user accesses some ...
    (Linux-Kernel)
  • sigaction - how to invoke previous sigaction handler
    ... I have some shared libraries. ... handler in one of the shared libs gets a signal, ... E.g. main does sigaction, calls shlib1, which does sigaction; ... isuer gets control and the sig handler does NOT get anything resulting ...
    (comp.unix.programmer)
  • sigaction - how to invoke previous handler
    ... I have some shared libraries. ... handler in one of the shared libs gets a signal, ... E.g. main does sigaction, calls shlib1, which does sigaction; ... isuer gets control and the sig handler does NOT get anything resulting ...
    (comp.unix.programmer)