Permalink
Browse files

Merge branch 'master' of github.com:kschiess/procrastinate

  • Loading branch information...
kschiess committed Dec 16, 2011
2 parents 10c9d74 + ca2f63a commit 7e798e2b5568f602674925b6389f89c634cf6c94
Showing with 12 additions and 8 deletions.
  1. +12 −8 spec/spec_helper.rb
View
@@ -8,11 +8,15 @@
require 'procrastinate'
-trap('INFO') {
- puts "You sent me a SIGINFO at #{Time.now}."
- Thread.list.each do |thread|
- p thread
- p thread.backtrace.first(5)
- puts
- end
-}
+begin
+ trap('INFO') {
+ puts "You sent me a SIGINFO at #{Time.now}."
+ Thread.list.each do |thread|
+ p thread
+ p thread.backtrace.first(5)
+ puts
+ end
+ }
+rescue ArgumentError
+ # No SIGINFO on some systems.
+end

0 comments on commit 7e798e2

Please sign in to comment.