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 96C94138239 for ; Sat, 11 May 2019 18:59:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FCF3E08BF; Sat, 11 May 2019 18:59:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75A21E08BF for ; Sat, 11 May 2019 18:59:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 61BE9344088 for ; Sat, 11 May 2019 18:59:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 02B56549 for ; Sat, 11 May 2019 18:59:54 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1557601181.32cff8a391c1cfda9bfccdf42f6a72d31f85cd68.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdnsd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/pdnsd/files/pdnsd.online.2 X-VCS-Directories: net-dns/pdnsd/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 32cff8a391c1cfda9bfccdf42f6a72d31f85cd68 X-VCS-Branch: master Date: Sat, 11 May 2019 18:59:54 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1de844ee-c1a0-4436-ad8b-0bf047e06c88 X-Archives-Hash: a7bda4c6fab8fbabfa72a22f329d17c8 commit: 32cff8a391c1cfda9bfccdf42f6a72d31f85cd68 Author: Lars Wendler gentoo org> AuthorDate: Sat May 11 18:59:41 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sat May 11 18:59:41 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32cff8a3 net-dns/pdnsd: sleep only accepts integers in POSIX mode Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler gentoo.org> net-dns/pdnsd/files/pdnsd.online.2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net-dns/pdnsd/files/pdnsd.online.2 b/net-dns/pdnsd/files/pdnsd.online.2 index 089f4e76e9c..be33bfaa03e 100644 --- a/net-dns/pdnsd/files/pdnsd.online.2 +++ b/net-dns/pdnsd/files/pdnsd.online.2 @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 command="/usr/sbin/pdnsd-ctl" @@ -10,10 +10,10 @@ depend() { wait_for_socket() { local i=0 pdnsd_socket="/var/cache/pdnsd/pdnsd.status" - while [ $i -lt 10 ]; do + while [ ${i} -lt 10 ]; do [ -S "${pdnsd_socket}" ] && return 0 - i=$(($i+1)) - sleep 1s + i=$((${i}+1)) + sleep 1 done return 1