diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-06-14 15:58:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-15 20:24:30 +0900 |
commit | 36a04de9f08584fd566a349c9d5e953905b45838 (patch) | |
tree | 95bb6b7525a77998cde39327bd3160aca9c8f5df /tool/lib/test | |
parent | c88c2319a85c0006d0800e06a1effd08310b434d (diff) |
Dump with debugger before killing stuck worker
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13618
Diffstat (limited to 'tool/lib/test')
-rw-r--r-- | tool/lib/test/unit.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 9ca29b6e64..b1eee1f268 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -421,6 +421,7 @@ module Test end def kill + EnvUtil::Debugger.search&.dump(@pid) signal = RUBY_PLATFORM =~ /mswin|mingw/ ? :KILL : :SEGV Process.kill(signal, @pid) warn "worker #{to_s} does not respond; #{signal} is sent" |