trap: sigception: allow signal in signal handler context
authorBernhard Urban <lewurm@gmail.com>
Wed, 25 Apr 2012 21:47:46 +0000 (23:47 +0200)
committerBernhard Urban <lewurm@gmail.com>
Wed, 25 Apr 2012 21:53:09 +0000 (23:53 +0200)
commitde1d8ed8daec3220c6c1900e9cded36a3e90f4c0
tree16a3ac1b7bea8b81f1506d930ead7834d4b4c35e
parent66501b5950881002845adee90c609ae64594a8b9
trap: sigception: allow signal in signal handler context

this can hapen in combination with the static initializer:
(1) some code in class B wants to access a static field in class A
(2) SEGSEGV is issued.  we are in a signal context now
(3) this is the first usage of class A, so we have to load it
    and execute the static initializer
(4) in the static initializer of class A, there is also a static
    field access, which again causes a SIGSEGV

without `SA_NODEFER', the second SIGSEGV would be ignored.
ffi/trap.c