Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
971c1aa
Import File::NFSLock 1.21 stock from CPAN
hookbot May 29, 2014
2277730
Update test files to match version 1.21
hookbot Jun 9, 2014
02b16d3
Bump to version 1.22
Jun 9, 2014
db8929c
Cosmetic changes to pod
hookbot Jul 25, 2014
7b4df66
Merge branch 'master' of ssh://github.com./hookbot/File-NFSLock
hookbot Jul 25, 2014
c953c71
Version 1.22
hookbot Jul 26, 2014
1c004cc
Bump version 1.23
hookbot Jul 28, 2014
9f52f96
More graceful handle crazy hostnames with weird regex meta characters…
hookbot Jul 28, 2014
c81fad8
RT#84658 discovered and reported and patch by Yann Rouillard:
hookbot Jul 28, 2014
f570006
Patch RT#84658 by Yann Rouillard:
hookbot Jul 28, 2014
69ffbb6
Revision 1.23
hookbot Jul 28, 2014
fa7d019
Version 1.23
hookbot Jul 28, 2014
7dcabaa
Bump version 1.24
hookbot Jul 28, 2014
f8b5f3c
Bump version 1.24
hookbot Jul 28, 2014
84d5f8d
RT#88520 Thanks David Steinbrunner: Fix typos
hookbot Jul 28, 2014
dab7a16
RT#88520 Thanks David Steinbrunner: Fix typos
hookbot Jul 28, 2014
280b5a9
Fix RT#61258
hookbot Jul 30, 2014
e567d53
Fixed race condition to prevent a newly acquired lock from being prem…
hookbot Jul 30, 2014
0a0c166
Version 1.24
hookbot Jul 31, 2014
425bce5
Bump version to 1.25
hookbot Jul 31, 2014
ffbd042
fix tempfile usage in tests to actually get the temp filename, instea…
wchristian Nov 1, 2014
296f663
on windows files open by a process have mandatory locks, so they cann…
wchristian Nov 1, 2014
1b51662
Merge pull request #1 from wchristian/win32_fixes
hookbot Nov 7, 2014
d416c25
Fix tempfile syntax
hookbot Nov 7, 2014
f3922e6
It's fairly safe to close the file handle before removing since the l…
hookbot Nov 7, 2014
34ce863
RT#42122
hookbot Nov 7, 2014
54e7a09
RT#48102
hookbot Nov 7, 2014
6d174ff
RT#42122
hookbot Nov 7, 2014
be84831
RT#48102
hookbot Nov 7, 2014
a57ed39
RT#48102
hookbot Nov 7, 2014
ac1d82f
Close Version 1.25
hookbot Nov 7, 2014
b2190c9
Bump to version 1.26
hookbot Nov 7, 2014
644fbaa
Implement #1 and #2 suggestions explained in RT#48102
hookbot Nov 9, 2014
feeb53e
Add tests to ensure parent still holds the lock after fork()ing for R…
hookbot Nov 9, 2014
9e3b965
Add File::NFSLock->fork() convenience method.
hookbot Nov 9, 2014
0fc13c2
Add tests to test the new ->fork() method functionality.
hookbot Nov 9, 2014
51ec138
Version 1.26
hookbot Nov 9, 2014
d6bc157
Bump to Version 1.27
hookbot Nov 10, 2014
f55b020
Bump to version 1.27
hookbot Nov 10, 2014
63d38d6
RT#99431
hookbot Nov 10, 2014
43134e5
RT#48102
hookbot Nov 10, 2014
6791f2f
Version 1.27
hookbot Nov 12, 2014
70b5a4b
Bump to Version 1.28
hookbot Nov 12, 2014
89b87e2
Ignore MYMETA.json generated file.
Nov 1, 2018
4a4be6b
Handle "." not in @INC on new-fangled Perl versions.
Nov 1, 2018
8fd46c7
Version 1.28
Nov 1, 2018
d555bc5
Add travis-ci to File-NFSLock commits.
toddr Nov 1, 2018
75a6809
Bump to Version 1.29 to signify PAUSE
Nov 1, 2018
ee92739
Merge pull request #4 from toddr/master
hookbot Nov 1, 2018
f9bb80d
Hiding PERL_USE_UNSAFE_INC to test Travis-CI
Nov 1, 2018
9b539ec
Get rid of crusty old deprecated PERL_USE_UNSAFE_INC setting.
Nov 1, 2018
0500977
For Perl 2.26 and higher, prevent this crashing spewage:
Nov 1, 2018
1bb8b85
For Perl 2.26 and higher, prevent this crashing spewage:
Nov 1, 2018
f48b0f8
Version 1.29
Nov 1, 2018
6efd615
Version 1.29
Nov 1, 2018
83bf81c
Happy New Year
Nov 1, 2018
ee115a2
Happy New Year
Nov 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
blib/
.build/
_build/
cover_db/
inc/
Build
Build.bat
.last_cover_stats
Makefile
Makefile.old
MANIFEST.bak
META.yml
MYMETA.yml
MYMETA.json
nytprof.out
pm_to_blib
*.tar.gz
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
branches:
except:
- /^issue\d+/
- /^gh\d+/
language: perl
env:
global:
- PERL_USE_UNSAFE_INC=0
- AUTHOR_TESTING=1
- AUTOMATED_TESTING=1
- RELEASE_TESTING=1
perl:
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
script:
- perl Makefile.PL && make test
60 changes: 60 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
Revision history for Perl extension File::NFSLock.

1.29 Nov 01 14:00 2018
- Avoid deprecated PERL_USE_UNSAFE_INC

1.28 Nov 01 10:00 2018
- Patch RT#130467 and RT#120088:
- Handle "." not in @INC

1.27 Nov 12 13:00 2014
- RT#99431:
- More Win32 compatibility fixes in test suite.
- RT#48102:
- Add tests for new ->fork() method.

1.26 Nov 07 16:00 2014
- Add File::NFSLock->fork() convenience method.
- RT#48102 Report by Todd Foggoa:
- More gracefully handle fork() to behave like
Linux by sharing the lock between both parent
and child processes when ->newpid() is called.

1.25 Jul 30 14:00 2014
- RT#99431 Report by Nathan Glenn:
- Fixed tempfile syntax by Christian Walde.
- Fixed Win32 Shared Lock by Christian Walde.
- RT#42122 Report by converter at cpan.org:
- Add tests to help debug Taint issues

1.24 Jul 30 14:00 2014
- Fixed a race condition in crash recovery.
- RT#88520 Thanks David Steinbrunner: Fix typos

1.23 Jul 28 11:00 2014
- More gracefully handle arbitrary hostnames.
- Patch RT#84658 by Yann Rouillard:
- Avoid gleefully double removing valid lockfile
when ->unlock is explicitly called.
- Patch RT#61258 by cpan at danonline.net:
- Fixed $graceful_sig to exit with non-zero to
more closely match stock signal handlers.

1.22 Jul 26 09:00 2014
- Reported by Kent Fredric and Karen Etheridge:
- Patch RT#86125 and RT#91546
- Use File::Temp for concurrency compatibility
in test suite, such as HARNESS_OPTIONS=j20

1.21 Jul 13 17:00 2011
- Various patches by Chorny at cpan dot org
and fREW frioux at gmail dot com:
- Windows NTFS compatibility fixes.
- Allow PID to be negative.
- Lexically scope temp file handles to
reduce changes of memory leak and
avoid unintentional glob clobberation.
- Security fix: 3 arg open().
- Repair test suites logics.
- Fixed infinite freezing on Strawberry Perl v5.10.0.
- Fixed infinite freezing on ActiveState Perl v5.12.1.
- Sorry for the past 8 years of suffering.

1.20 May 13 12:00 2003
- Avoid double reverting signal handlers when
unlock() is explicitly called instead of
Expand Down
2 changes: 1 addition & 1 deletion File-NFSLock.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Automatically generated by File-NFSLock.spec.PL
%define class File
%define subclass NFSLock
%define version 1.20
%define version 1.29
%define release 1
%define defperlver 5.6.1

Expand Down
40 changes: 21 additions & 19 deletions File-NFSLock.spec.PL
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,31 @@ my $name;
my $version;
$INC{"ExtUtils/MakeMaker.pm"} = 1;
sub WriteMakefile {
my %props = @_;
$name = $props{NAME} || die "Makefile.PL: Missing NAME";
if ($version = $props{VERSION}) {
# done
} elsif (my $version_from = $props{VERSION_FROM}) {
$@ = "";
$version = eval qq{
do "$version_from";
\$$name\::VERSION || die "$version_from: Missing VERSION";
};
die $@ if $@;
if (!defined $version) {
die "$version_from: Missing VERSION";
my %props = @_;
$name = $props{NAME} || die "Makefile.PL: Missing NAME";
if ($version = $props{VERSION}) {
# done
}
elsif (my $version_from = $props{VERSION_FROM}) {
$@ = "";
$version = eval qq{
do "./$version_from";
\$$name\::VERSION || die "$version_from: Missing VERSION";
};
die $@ if $@;
if (!defined $version) {
die "$version_from: Missing VERSION";
}
}
else {
die "Makefile.PL: Could not determine version!";
}
} else {
die "Makefile.PL: Could not determine version!";
}
}
do "Makefile.PL";
do "./Makefile.PL";
if ($name) {
$name =~ s/::/-/g;
$name =~ s/::/-/g;
} else {
die "Makefile.PL: Missing WriteMakefile";
die "Makefile.PL: Missing WriteMakefile";
}

$version || die "No version!";
Expand Down
11 changes: 10 additions & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,21 @@ examples/lock_test Script used to test on live system
t/100_load.t
t/110_compare.t
t/120_single.t
t/130_taint.t
t/200_bl_ex.t
t/210_nb_ex.t
t/220_ex_scope.t
t/230_double.t
t/240_fork.t
t/240_fork_ex.t
t/241_fork_ex.t
t/242_fork_ex.t
t/243_fork_ex.t
t/250_fork_sh.t
t/251_fork_sh.t
t/252_fork_sh.t
t/253_fork_sh.t
t/300_bl_sh.t
t/400_kill.t
t/410_die.t
t/420_crash.t
t/430_taint.t
17 changes: 17 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
\.DS_Store
\bdiffs?\b
^MANIFEST\.
^MYMETA
^Makefile$
~$
\.old$
\.bak$
\.orig$
\.gz$
^\.git
^benchmark/
^cover_db/
^blib/
^pm_to_blib$
^\.travis.yml$
^File-NFSLock-\d\.\d+/
20 changes: 10 additions & 10 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ WriteMakefile
package MY;

sub processPL {
my $self = shift;
my $block = $self->SUPER::processPL(@_);
# "Version:" in spec needs to match
# "$VERSION" from VERSION_FROM
$block =~ s%(spec.PL\s*)$%$1 \$\(VERSION_FROM\)%m;
$block;
my $self = shift;
my $block = $self->SUPER::processPL(@_);
# "Version:" in spec needs to match
# "$VERSION" from VERSION_FROM
$block =~ s%(spec.PL\s*)$%$1 \$\(VERSION_FROM\)%m;
$block;
}

sub libscan {
my $self = shift;
my $path = shift;
($path =~ / \bCVS\b | \~$ /x) ? undef : $path;
my $self = shift;
my $path = shift;
($path =~ / \bCVS\b | \~$ /x) ? undef : $path;
}

sub postamble {
return qq^
return qq^

pm_to_blib: README

Expand Down
Loading