зеркало из https://github.com/github/ruby.git
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:
Родитель
c9a9b8036c
Коммит
1ac0afab4d
1
error.c
1
error.c
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче