abuild: use file descriptor 9 instead of 200
POSIX only requires that filedesriptors 0-9 are available for shell redirections.
This commit is contained in:
parent
51dd555cf2
commit
affb05d446
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue