Setup proper SignalException handling
Setup proper SignalException handling

What a wonderful MRI behavior we see here again. What MRI does is when a
SignalException escapes to the toplevel, it catches it, sets up the
default signal handler for that signal and reraises the signal to the
current process. We therefore mimic this behavior by setting up signal
handlers for the same signals MRI catches and raises an exception. Our
post handling then does the same by setting up the default handler and
resending the signal.

Fixes #1839

ngpestelos/rubinius,digitalextremist/rubinius,ngpestelos/rubinius,jemc/rubinius,dblock/rubinius,sferik/rubinius,sferik/rubinius,dblock/rubinius,Azizou/rubinius,ruipserra/rubinius,Wirachmat/rubinius,Azizou/rubinius,benlovell/rubinius,ngpestelos/rubinius,kachick/rubinius,dblock/rubinius,jsyeo/rubinius,ngpestelos/rubinius,mlarraz/rubinius,heftig/rubinius,digitalextremist/rubinius,heftig/rubinius,kachick/rubinius,digitalextremist/rubinius,dblock/rubinius,jsyeo/rubinius,dblock/rubinius,mlarraz/rubinius,Wirachmat/rubinius,pH14/rubinius,ngpestelos/rubinius,kachick/rubinius,ruipserra/rubinius,benlovell/rubinius,ngpestelos/rubinius,ruipserra/rubinius,pH14/rubinius,Azizou/rubinius,ruipserra/rubinius,ruipserra/rubinius,heftig/rubinius,digitalextremist/rubinius,jsyeo/rubinius,pH14/rubinius,kachick/rubinius,pH14/rubinius,ruipserra/rubinius,sferik/rubinius,jemc/rubinius,sferik/rubinius,sferik/rubinius,jemc/rubinius,mlarraz/rubinius,digitalextremist/rubinius,Azizou/rubinius,benlovell/rubinius,pH14/rubinius,jemc/rubinius,mlarraz/rubinius,dblock/rubinius,jemc/rubinius,heftig/rubinius,jsyeo/rubinius,ruipserra/rubinius,Azizou/rubinius,Wirachmat/rubinius,benlovell/rubinius,Wirachmat/rubinius,benlovell/rubinius,Azizou/rubinius,sferik/rubinius,heftig/rubinius,kachick/rubinius,digitalextremist/rubinius,jsyeo/rubinius,kachick/rubinius,dblock/rubinius,pH14/rubinius,pH14/rubinius,jsyeo/rubinius,digitalextremist/rubinius,benlovell/rubinius,kachick/rubinius,kachick/rubinius,benlovell/rubinius,Wirachmat/rubinius,mlarraz/rubinius,Azizou/rubinius,mlarraz/rubinius,heftig/rubinius,heftig/rubinius,jemc/rubinius,jsyeo/rubinius,jemc/rubinius,sferik/rubinius,mlarraz/rubinius,Wirachmat/rubinius,Wirachmat/rubinius,ngpestelos/rubinius