Re: blocking signals in signal handler -- True or False quiz
From: Andrew Gierth (andrew@erlenstar.demon.co.uk)
Date: 04/25/03
- Next message: scriptOmatic: "Re: memory leak"
- Previous message: Adie: "Re: ftp LIST in C"
- In reply to: Marc Rochkind: "blocking signals in signal handler -- True or False quiz"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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/>
- Next message: scriptOmatic: "Re: memory leak"
- Previous message: Adie: "Re: ftp LIST in C"
- In reply to: Marc Rochkind: "blocking signals in signal handler -- True or False quiz"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|