From d5810f461f6efa80f77c4fdfff6adc54c0bc9293 Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Wed, 26 Aug 2026 18:55:36 +0900 Subject: [PATCH 1/2] Fix zombie convert process left behind when thumbnail generation times out. --- lib/redmine/thumbnail.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/redmine/thumbnail.rb b/lib/redmine/thumbnail.rb index 1951abd27..8d89ae496 100644 --- a/lib/redmine/thumbnail.rb +++ b/lib/redmine/thumbnail.rb @@ -66,7 +66,10 @@ module Redmine end end rescue Timeout::Error - Process.kill('KILL', pid) + if pid + Process.kill('KILL', pid) + Process.detach(pid) + end logger.error("Creating thumbnail timed out:\nCommand: #{cmd}") return nil end -- 2.55.0