🔀 Merge branch 'development'

This commit is contained in:
Luc Didry 2020-08-17 05:14:29 +02:00
commit f6ed7b9ccd
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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 hasnt been removed while checking it
} else {
return;