work around perl bug where pads may be reused in cleanup after fork
authorGraham Knop <haarg@haarg.org>
Fri, 16 Aug 2013 06:08:22 +0000 (02:08 -0400)
committerGraham Knop <haarg@haarg.org>
Fri, 16 Aug 2013 06:13:25 +0000 (02:13 -0400)
commit130617d97f55da4f25b48c850ca41b10c4581200
tree9c85b5bc32b00a8092c0f9175b320330fd5b77e3
parent2c468649250b4aaafb70a4749a9f855207f3faf1
work around perl bug where pads may be reused in cleanup after fork

During global destruction triggered by a explicit exit after forking,
perl may re-use the pad for try in a nested call in a DESTROY.  All
variables used must be explictly initialized to avoid this.
lib/Try/Tiny.pm
t/global_destruction_forked.t [new file with mode: 0644]