Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
devtools
Commits
0cd9e1ae
Commit
0cd9e1ae
authored
12 years ago
by
Pierre Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
archbuild: use flock -n as we do elsewhere
parent
3734c80b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
archbuild.in
+6
-3
6 additions, 3 deletions
archbuild.in
with
6 additions
and
3 deletions
archbuild.in
+
6
−
3
View file @
0cd9e1ae
...
...
@@ -43,9 +43,12 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
[[
-d
$copy
]]
||
continue
msg2
"Deleting chroot copy '
$(
basename
"
${
copy
}
"
)
'..."
# Lock the copy
exec
9>
"
${
copy
}
.lock"
flock 9
exec
9>
"
$copydir
.lock"
if
!
flock
-n
9
;
then
stat_busy
"Locking chroot copy '
$copy
'"
flock 9
stat_done
fi
{
type
-P
btrfs
&&
btrfs subvolume delete
"
${
copy
}
"
;
}
&>/dev/null
rm
-rf
"
${
copy
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment