From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0A64B13832E for ; Fri, 29 Jul 2016 08:08:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36827E08E6; Fri, 29 Jul 2016 08:08:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D09A4E08E6 for ; Fri, 29 Jul 2016 08:08:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 34D51340CD7 for ; Fri, 29 Jul 2016 08:08:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D2EF7D7 for ; Fri, 29 Jul 2016 08:08:18 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1469779686.74d377662c78a5d6feef51e6bd9bbd38f9acc85c.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/rsync-generation/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/rsync-generation/refresh-mirror.sh X-VCS-Directories: scripts/rsync-generation/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 74d377662c78a5d6feef51e6bd9bbd38f9acc85c X-VCS-Branch: master Date: Fri, 29 Jul 2016 08:08:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a44a0f43-b826-4658-865d-a27871e8641d X-Archives-Hash: 6866326498c16e629635581d469f294d commit: 74d377662c78a5d6feef51e6bd9bbd38f9acc85c Author: Fabian Groffen gentoo org> AuthorDate: Fri Jul 29 08:08:06 2016 +0000 Commit: Fabian Groffen gentoo 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