Commit affb05d4 authored by Natanael Copa's avatar Natanael Copa

abuild: use file descriptor 9 instead of 200

POSIX only requires that filedesriptors 0-9 are available for shell
redirections.
parent 51dd555c
......@@ -309,8 +309,8 @@ uri_fetch() {
CLEANUP_FILES="$CLEANUP_FILES $lockfile"
(
flock -n -x 200 || msg "Waiting for ${lockfile##*/}..."
flock -x 200
flock -n -x 9 || msg "Waiting for ${lockfile##*/}..."
flock -x 9
[ -f "$SRCDEST/$d" ] && exit 0 # use exit since its a subshell
......@@ -332,7 +332,7 @@ uri_fetch() {
$fetcher $opts -o "$SRCDEST/$d.part" "$uri" \
&& mv "$SRCDEST/$d.part" "$SRCDEST/$d"
) 200>$lockfile
) 9>$lockfile
local rc=$?
rm -f "$lockfile"
......
Markdown is supported
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