Skip Menu |

This queue is for tickets about the Log-Any-Adapter-Mojo CPAN distribution.

Report information
The Basics
Id: 67950
Status: open
Priority: 0/
Queue: Log-Any-Adapter-Mojo

People
Owner: henryykt [...] gmail.com
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: (no value)



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
Thanks for the bug report. I think you're right. The fix will be in 0.02.
Fixed in 0.02
I made a small mistake. Bug should be really fixed in v0.0.3