lib/bundler/worker.rb in bundler-1.14.6 vs lib/bundler/worker.rb in bundler-1.15.0.pre.1

- old
+ new

@@ -25,11 +25,11 @@ @request_queue = Queue.new @response_queue = Queue.new @func = func @size = size @threads = nil - trap("INT") { abort_threads } + SharedHelpers.trap("INT") { abort_threads } end # Enqueue a request to be executed in the worker pool # # @param obj [String] mostly it is name of spec that should be downloaded @@ -74,9 +74,10 @@ @threads = nil end def abort_threads return unless @threads + Bundler.ui.debug("\n#{caller.join("\n")}") @threads.each(&:exit) exit 1 end def create_threads