From owner-freebsd-bugs Mon Aug 12 14:50:49 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8975137B400; Mon, 12 Aug 2002 14:50:46 -0700 (PDT) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20B6243E3B; Mon, 12 Aug 2002 14:50:45 -0700 (PDT) (envelope-from babolo@links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id BAA17214; Tue, 13 Aug 2002 01:52:41 +0400 (MSD) Message-Id: <200208122152.BAA17214@aaz.links.ru> Subject: Re: bin/37442 - patch for /bin/sleep In-Reply-To: <200208121740.g7CHe38K068767@freefall.freebsd.org> from "Ruslan Ermilov" at "Aug 12, 2 10:40:03 am" To: ru@FreeBSD.ORG Date: Tue, 13 Aug 2002 01:52:41 +0400 (MSD) Cc: freebsd-bugs@FreeBSD.ORG From: "."@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ruslan Ermilov writes: > The following reply was made to PR bin/37442; it has been noted by GNATS. > > From: Ruslan Ermilov > To: Edwin Groothuis > Cc: bug-followup@FreeBSD.org > Subject: Re: bin/37442 - patch for /bin/sleep > Date: Mon, 12 Aug 2002 20:38:29 +0300 > > On Mon, Aug 12, 2002 at 09:04:20PM +1000, Edwin Groothuis wrote: > > Greetings, > > > > "Why me" is what you ask yourself now probably. Mostly because you > > are the one who made the last changes to sleep.c... nearly three > > years ago :-/ > > > > Could you have please a look at PR bin/37442? > > (http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/37442) > > > > The PR is about a small change in sleep which allows the usage of > > multipliers: So that 10m is 10 minutes, 3h is three hours and 4d > > is four days. > > > > It doesn't break any current script-usages, it only adds extra > > flexibility for people who want to use it. > > > POSIX.1-2001 clearly documents the sleep(1)'s SYNOPSIS: > > : SYNOPSIS > : sleep time > > And requires that: > > : DESCRIPTION > : The sleep utility shall suspend execution for at least > : the integral number of seconds specified by the time > : operand. > > We are currently "compatible" with POSIX in that we don't violate it > (POSIX allows the implementation to support more fine-grained sleep, > just does not require it to). > > If we make the change you propose, we will become incompatible with > POSIX, as the latter requires ``sleep 10m'' to sleep for "at least > 10 seconds". As far as I understand any value bigger then 10s is "at least 10 seconds". So 10m is "at least 10 seconds". :-) So, this IS compatible with POSIX > I will close the PR if you don't mind, pending your confirmation. > > > Cheers, > -- > Ruslan Ermilov Sysadmin and DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-bugs" in the body of the message > -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message