From affb05d446261d1064ab9cd859167ecc72292be8 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 28 Feb 2012 07:27:29 +0000 Subject: abuild: use file descriptor 9 instead of 200 POSIX only requires that filedesriptors 0-9 are available for shell redirections. --- abuild.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index a20aeaa..7ff5ec0 100755 --- a/abuild.in +++ b/abuild.in @@ -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" -- cgit v1.2.3-60-g2f50