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:
Natanael Copa 2012-02-28 07:27:29 +00:00
parent 51dd555cf2
commit affb05d446
1 changed files with 3 additions and 3 deletions

View File

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