1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add more 2 sec.

After sending SEGV signal, but no response. Try to add 2 more
seconds. If we can not have a detailed log, we need to use
gdb/lldb to show the backtrace.
This commit is contained in:
Koichi Sasada 2020-06-01 17:03:27 +09:00
parent 3591703b31
commit 7b9527ce74

View file

@ -72,7 +72,7 @@ module EnvUtil
end
module_function :timeout
def terminate(pid, signal = :TERM, pgroup = nil, reprieve = 1)
def terminate(pid, signal = :TERM, pgroup = nil, reprieve = 3)
reprieve = apply_timeout_scale(reprieve) if reprieve
signals = Array(signal).select do |sig|