summaryrefslogtreecommitdiff
path: root/test/ruby/test_thread_queue.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-12-18 16:37:52 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2023-12-18 18:19:53 -0500
commit3c471149910d79745b50389c436f0ed2973e0d91 (patch)
tree910742509490a2bfa68556a6e8fcd706b28032ca /test/ruby/test_thread_queue.rb
parent11fa76b1b521072c200c78ea023960221ff426d6 (diff)
Unmask signal before re-raising fatal signal
On Linux, while the signal handler runs, that signal is masked, so in the rb_bug_for_fatal_signal() code path we didn't get the default signal action as intended. See signal(7). It worked fine on macOS, though. Before: $ ./miniruby -e 'Process.kill :SIGSEGV, Process.pid' <snip> Aborted (core dumped) After: $ ./miniruby -e 'Process.kill :SIGSEGV, Process.pid' <snip> Segmentation fault (core dumped) Follow-up for 1ac0afab4da "rb_bug_for_fatal_signal: exit with the right signal".
Diffstat (limited to 'test/ruby/test_thread_queue.rb')
0 files changed, 0 insertions, 0 deletions