]> git.vpit.fr Git - perl/modules/VPIT-TestHelpers.git/commit - lib/VPIT/TestHelpers.pm
Harden spawned threads against stray exit
authorVincent Pit <vince@profvince.com>
Mon, 20 Jul 2015 22:33:23 +0000 (19:33 -0300)
committerVincent Pit <vince@profvince.com>
Mon, 20 Jul 2015 22:33:23 +0000 (19:33 -0300)
commitba865c42d13de4c435b55379b0a32fe232053668
tree49f36d5789b87a0c7569b60a226a625942f3b57c
parent3ba261a525c267b0abe70503c79eaee1389e2aba
Harden spawned threads against stray exit

The thread may call exit if malloc() fails at some point, which will cause
the whole process to crash. We prevent this by passing 'exit =>
"threads_only"' to the threads.pm import method, which requires threads.pm
version 1.37.
lib/VPIT/TestHelpers.pm