summaryrefslogtreecommitdiff
path: root/gems
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-09 23:13:59 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-09 23:22:15 +0900
commit891cbd66a411725d7300a28b1a95619c2902f0eb (patch)
tree58d4c2749523b7c1bc083d8686e6ce5cc02e5355 /gems
parentdd477df411691803fc5a83c7daa64faac112a0e4 (diff)
downloadruby-891cbd66a411725d7300a28b1a95619c2902f0eb.tar.gz
signal.c: save the original sighandlers for fatal signals
On Android, a signal handler that is not SIG_DFL is set by default for SIGSEGV. Ruby's install_sighandler inserts Ruby's handler only when the signal has no handler, so it does not insert Ruby's SEGV report handler, which caused some test failures. This changeset forces to install Ruby's handler for some fatal signals (sigbus, sigsegv, and sigill). They keep the original handlers, and call them when the interpreter receives the signals.
Diffstat (limited to 'gems')
0 files changed, 0 insertions, 0 deletions