# File lib/autotest.rb, line 232
  def add_sigint_handler
    trap 'INT' do
      if @interrupted then
        @wants_to_quit = true
      else
        unless hook :interrupt then
          puts "Interrupt a second time to quit"
          @interrupted = true
          sleep 1.5
        end
        raise Interrupt, nil # let the run loop catch it
      end
    end
  end