commit: 74d377662c78a5d6feef51e6bd9bbd38f9acc85c
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 29 08:08:06 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jul 29 08:08:06 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=74d37766
scripts/rsync-generation/refresh-mirror: use available filedescriptor iso fixed
3
scripts/rsync-generation/refresh-mirror.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/rsync-generation/refresh-mirror.sh
b/scripts/rsync-generation/refresh-mirror.sh
index 24643ca..bcfdd8f 100755
--- a/scripts/rsync-generation/refresh-mirror.sh
+++ b/scripts/rsync-generation/refresh-mirror.sh
@@ -25,8 +25,11 @@ else
# && ./gen-timing-rsync0-graph.sh \
# && popd > /dev/null
}
- (((genandpush | tee -a "${LOGFILE}") 3>&1 1>&2 2>&3 \
+ # get a free filedescriptor in FD
+ exec {FD}>/tmp/rsync-master-busy
+ (((genandpush | tee -a "${LOGFILE}") ${FD}>&1 1>&2 2>&${FD} \
| tee -a "${LOGFILE}") 2> /dev/null)
echo "generation done $(date)" >> ${LOGFILE}
+ exec {FD}>&-
rm -f /tmp/rsync-master-busy
fi