Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Armando Lüscher
lufi
Commits
f6ed7b9c
Verified
Commit
f6ed7b9c
authored
Aug 17, 2020
by
Luc Didry
Browse files
🔀
Merge branch 'development'
parents
7b61b632
634707c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
f6ed7b9c
...
...
@@ -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)
...
...
lib/Lufi.pm
View file @
f6ed7b9c
...
...
@@ -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’t been removed while checking it
}
else
{
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment