Skip to content

Commit

Permalink
Renamed segv_handler, abandon_ship_handler.
Browse files Browse the repository at this point in the history
The handler processes a variety of process-terminating signals besides segv.

Thanks to @yorickpeterse for the name.
  • Loading branch information
brixen committed Feb 4, 2015
1 parent c0c3e79 commit f7d5e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/signal.cpp
Expand Up @@ -389,7 +389,7 @@ namespace rubinius {
}
}

static void segv_handler(int sig) {
static void abandon_ship_handler(int sig) {
struct sigaction action;

// Unset our handler for this signal.
Expand Down Expand Up @@ -473,7 +473,7 @@ namespace rubinius {
#ifdef USE_EXECINFO
// If we have execinfo, setup some crash handlers
if(!getenv("DISABLE_SEGV")) {
action.sa_handler = segv_handler;
action.sa_handler = abandon_ship_handler;
sigaction(SIGSEGV, &action, NULL);
sigaction(SIGBUS, &action, NULL);
sigaction(SIGILL, &action, NULL);
Expand Down

0 comments on commit f7d5e79

Please sign in to comment.