lib/zold/node/farmers.rb in zold-0.16.11 vs lib/zold/node/farmers.rb in zold-0.16.12

- old
+ new

@@ -53,12 +53,12 @@ raise "Zold binary not found at #{bin}" unless File.exist?(bin) cmd = [ 'ruby', Shellwords.escape(bin), '--skip-upgrades', - Shellwords.escape("--info-thread=#{Thread.current.name}"), - Shellwords.escape("--info-start=#{Time.now.utc.iso8601}"), + "--info-thread=#{Shellwords.escape(Thread.current.name)}", + "--info-start=#{Time.now.utc.iso8601}", '--low-priority', 'next', Shellwords.escape(score) ].join(' ') Open3.popen2e(cmd) do |stdin, stdout, thr| @@ -98,10 +98,10 @@ end private def kill(pid) - Process.kill('TERM', pid) + Process.kill('KILL', pid) @log.debug("Process ##{pid} killed") rescue StandardError => e @log.debug("No need to kill process ##{pid} since it's dead already: #{e.message}") end end