From fdfde6ab2e1e6a038bea82a892d1d3cc58cbdf09 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 7 Aug 2024 09:43:34 +0900 Subject: [PATCH] Use SIGSEGV to kill a parallel test worker (to dump backtrace) --- tool/lib/test/unit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index eff2b71580..e992db55c6 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -415,8 +415,8 @@ module Test end def kill - Process.kill(:KILL, @pid) - warn "worker #{to_s} does not respond; SIGKILL is sent" + Process.kill(:SEGV, @pid) + warn "worker #{to_s} does not respond; SIGSEGV is sent" rescue Errno::ESRCH end