rb_bug_for_fatal_signal: exit with the right signal

`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.
This commit is contained in:
Jean Boussier 2023-12-15 17:08:34 +01:00 коммит произвёл Jean Boussier
Родитель c9a9b8036c
Коммит 1ac0afab4d
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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();
}