Skip to content

Commit

Permalink
rb_bug_for_fatal_signal: exit with the right signal
Browse files Browse the repository at this point in the history
`die()` calls `abort()` which always exit as it `SIGABRT`
was received.

This isn't very friendly with systems that automatically
collect crashes as the `%s` parameter will be changed.
  • Loading branch information
byroot committed Dec 15, 2023
1 parent c9a9b80 commit 1ac0afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions error.c
Expand Up @@ -1066,6 +1066,7 @@ rb_bug_for_fatal_signal(ruby_sighandler_t default_sighandler, int sig, const voi

if (default_sighandler) default_sighandler(sig);

ruby_default_signal(sig);
die();
}

Expand Down

0 comments on commit 1ac0afa

Please sign in to comment.