Verified Commit f6ed7b9c authored by Luc Didry's avatar Luc Didry
Browse files

馃攢 Merge branch 'development'

parents 7b61b632 634707c9
......@@ -2,6 +2,8 @@ Revision history for Lufi
?.??.? ????-??-??
- 馃悰 Check if provisioning lockfile mod time exists before using it (#208)
0.05.2 2020-07-25
- 馃敟 Remove code from abandonned feature
- Fix regression introduced in 0.05.1 (#201)
......
......@@ -83,7 +83,7 @@ sub startup {
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($lockfile);
# Remove the lockfile if more than 20 seconds old
if (time - $mtime > 20) {
if ($mtime && time - $mtime > 20) {
unlink $lockfile if -e $lockfile; # if -e just to be sure the file hasn鈥檛 been removed while checking it
} else {
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment