public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdnsd/files/
Date: Sat, 11 May 2019 18:59:54 +0000 (UTC)	[thread overview]
Message-ID: <1557601181.32cff8a391c1cfda9bfccdf42f6a72d31f85cd68.polynomial-c@gentoo> (raw)

commit:     32cff8a391c1cfda9bfccdf42f6a72d31f85cd68
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 18:59:41 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> 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 <polynomial-c <AT> 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


             reply	other threads:[~2019-05-11 18:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-11 18:59 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-17 19:33 [gentoo-commits] repo/gentoo:master commit in: net-dns/pdnsd/files/ Conrad Kostecki
2016-05-03  9:47 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1557601181.32cff8a391c1cfda9bfccdf42f6a72d31f85cd68.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox