nekokak/p5-DBIx-TransactionManager — pull request #2 by kazeburo (2014-05-13 07:18:07+00:00)
Title: disbale rollback in child process

add checking pid in DBIx::TransactionManager::ScopeGuard::DESTROY.

If fork() is used in the transaction, and a child process exits before commit the transaction in a parent process. Unexpected rollback() will be called in child process's DBIx::TransactionManager::ScopeGuard::DESTROY.

トランザクション中にforkを使って、子プロセスが先に終了した場合、子プロセスのScopeGuard::DESTROYのrollbackが勝手に実行されてしまいます。