Re: sigaction SA_SIGINFO functionality

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
30 Dec 1998 10:43:38 +0100


Richard Henderson <rth@cygnus.com> writes:

|> On Mon, Dec 21, 1998 at 11:39:09AM +0100, Andreas Schwab wrote:
|> > SA_SIGINFO only works with RT signals (>32).
|>
|> No, SA_SIGINFO works for any signal.

No, it doesn't. It never passes a usefull struct siginfo to the signal
handler, even if the machine dependent function does provide it.

|> FWIW, the provided test program _does_ work for me on x86 2.1.127.
|>
|> [bcpl:~] ./a.out
|> Entering the loop
|> Signal SEGV! si = 0x0xbffff968
|> Back at main_loop

But this struct siginfo contains no interesting information. See
dequeue_signal.

Andreas.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/