summaryrefslogtreecommitdiff
path: root/fml/lib/File/SimpleLock.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-12-13 04:19:59 +0000
committerfukachan <fukachan>2002-12-13 04:19:59 +0000
commitd5530902a561daeec773155560e293737436056d (patch)
tree9d769c5cdf5428aca8fb5d044f6a642a8a36ee42 /fml/lib/File/SimpleLock.pm
parent01b51abe51ad9483907a22be0651da2e810cf622 (diff)
downloadfml8-d5530902a561daeec773155560e293737436056d.tar.gz
fml8-d5530902a561daeec773155560e293737436056d.tar.bz2
fml8-d5530902a561daeec773155560e293737436056d.zip
need write permission for flock on solaris (PR fml-devel:331,332)
Diffstat (limited to 'fml/lib/File/SimpleLock.pm')
-rw-r--r--fml/lib/File/SimpleLock.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/fml/lib/File/SimpleLock.pm b/fml/lib/File/SimpleLock.pm
index 06e71736..03ff5977 100644
--- a/fml/lib/File/SimpleLock.pm
+++ b/fml/lib/File/SimpleLock.pm
@@ -2,7 +2,7 @@
#
# Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi
#
-# $FML: SimpleLock.pm,v 1.13 2002/09/11 23:18:19 fukachan Exp $
+# $FML: SimpleLock.pm,v 1.14 2002/09/22 14:56:57 fukachan Exp $
#
package File::SimpleLock;
@@ -95,7 +95,7 @@ sub _simple_flock
my ($self, $file) = @_;
use FileHandle;
- my $fh = new FileHandle $file;
+ my $fh = new FileHandle ">> $file";
if (defined $fh) {
$LockedFileHandle{ $file } = $fh;