From e4114364f23b8f455d7782c207a0435efafef1bb Mon Sep 17 00:00:00 2001 From: secgen server Date: Fri, 9 Feb 2018 15:37:26 +0000 Subject: [PATCH] comment --- lib/helpers/gem_exec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helpers/gem_exec.rb b/lib/helpers/gem_exec.rb index 7cf54f1d8..1760c5fb3 100644 --- a/lib/helpers/gem_exec.rb +++ b/lib/helpers/gem_exec.rb @@ -39,6 +39,7 @@ class GemExec Dir.chdir(working_dir) output_hash = {:output => '', :status => 0, :exception => nil} begin + # Times out after 30 minutes, (TODO: make this configurable) output_hash[:output] = ProcessHelper.process("#{gem_path} #{arguments}", {:pty => true, :timeout => (60 * 30), include_output_in_exception: true}) rescue Exception => ex