send SEGV to show backtrace.

send SEGV to terminate the remaining process before sending
ABRT and KILL to show the backtrace.
This commit is contained in:
Koichi Sasada 2020-06-01 10:13:28 +09:00
parent 4cb8b49d41
commit 3591703b31

View File

@ -79,7 +79,7 @@ module EnvUtil
DEFAULT_SIGNALS[sig.to_s] or
DEFAULT_SIGNALS[Signal.signame(sig)] rescue false
end
signals |= [:ABRT, :KILL]
signals |= [:SEGV, :ABRT, :KILL]
case pgroup
when 0, true
pgroup = -pid