diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-28 07:27:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-28 07:27:29 +0000 |
commit | affb05d446261d1064ab9cd859167ecc72292be8 (patch) | |
tree | 0260f0914637221fabc8917c5124a3f7ee8cd665 | |
parent | 51dd555cf242b7890978c0b5197723a6d839fecd (diff) | |
download | abuild-affb05d446261d1064ab9cd859167ecc72292be8.tar.gz abuild-affb05d446261d1064ab9cd859167ecc72292be8.tar.bz2 abuild-affb05d446261d1064ab9cd859167ecc72292be8.tar.xz abuild-affb05d446261d1064ab9cd859167ecc72292be8.zip |
abuild: use file descriptor 9 instead of 200
POSIX only requires that filedesriptors 0-9 are available for shell
redirections.
-rwxr-xr-x | abuild.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |