Changeset [67f1a3714e8a202095ddf941e94f2eada10fec60] by David Balatero

June 6th, 2009 @ 01:22 AM

Added a Kernel#trap hack so that we can catch ^C.

Sinatra's trap(:INT) handler conflicts with ours. A patch has been submitted to Sinatra, but for now, we want to make sure that our trap(:INT) handler is the one to be used.

Once the Sinatra team accepts my patch, I will remove this highly offensive code :) http://github.com/dbalatero/sina... http://github.com/dbalatero/queu...

Committed by David Balatero

  • M lib/queue_stick.rb
  • M lib/queue_stick/runner.rb
  • M lib/queue_stick/trap_hack.rb
  • M spec/queue_stick/runner_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

This library allows you to write the minimal amount of code to process queue messages. Supports SQS out of the box.

Shared Ticket Bins