Subject: | Test hangs on BSD systems |
The basic.t test hangs on my FreeBSD system. When running in a debugger,
I see as the last command:
Mojo::Log::log(/usr/perl5.8.9/lib/site_perl/5.8.9/Mojo/Log.pm:76):
76: flock $handle, LOCK_EX;
I suspect the problem happens because on all BSD systems (Mac OS X,
FreeBSD ...) temporary files created with File::Temp are already locked
using O_EXLOCK, so another lock on the temporary file usually fails. You
can prevent this by using EXLOCK => 0 when creating the temporary file,
see the File::Temp documentation.
Regards,
Slaven