Permalink
Browse files

Remove leaky unused signal handler for transactions.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Dec 22, 2007
1 parent fa90677 commit 38f8252e2d0a109d1b833d6b289cd989e7bfffe4
Showing with 0 additions and 2 deletions.
  1. +0 −2 activerecord/lib/active_record/transactions.rb
@@ -73,14 +73,12 @@ def self.included(base)
# trigger a ROLLBACK when raised, but not be re-raised by the transaction block.
module ClassMethods
def transaction(&block)
- previous_handler = trap('TERM') { raise TransactionError, "Transaction aborted" }
increment_open_transactions
begin
connection.transaction(Thread.current['start_db_transaction'], &block)
ensure
decrement_open_transactions
- trap('TERM', previous_handler)
end
end

0 comments on commit 38f8252

Please sign in to comment.