Skip Menu |

This queue is for tickets about the Log-StdLog CPAN distribution.

Report information
The Basics
Id: 27251
Status: new
Priority: 0/
Queue: Log-StdLog

People
Owner: Nobody in particular
Requestors: PEdwards [...] factset.com
Cc:
AdminCc:

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



Subject: Log::StdLog v0.0.3 machines that do not implement flock
Date: Tue, 22 May 2007 11:13:50 -0400
To: bug-Log-StdLog [...] rt.cpan.org
From: Peter Edwards <PEdwards [...] factset.com>
Thanks for the module. I thought I'd give it a go on VMS, but VMS Perl does not implement flock, and calls produce a fatal error. You could check for flock using: use Config; my $HAS_FLOCK = $Config{'d_flock'}; But without a file system that supports file versioning such as VMS I think the log file is no longer updated atomically. Maybe: use English; my $SKIP_FLOCK = $OSNAME eq 'VMS'; Might be a better way to go, I guess it all depends on if you want the module to be used to write to logs non atomically on systems that don't support flock or a versioning file system. When the flock calls are not made on VMS the module passes all it's tests. Peter (Stig) Edwards