Date: Tue, 13 Aug 2002 01:52:41 +0400 (MSD) From: "."@babolo.ru To: ru@FreeBSD.ORG Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/37442 - patch for /bin/sleep Message-ID: <200208122152.BAA17214@aaz.links.ru> In-Reply-To: <200208121740.g7CHe38K068767@freefall.freebsd.org> from "Ruslan Ermilov" at "Aug 12, 2 10:40:03 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov writes: > The following reply was made to PR bin/37442; it has been noted by GNATS. > > From: Ruslan Ermilov <ru@FreeBSD.org> > To: Edwin Groothuis <edwin@mavetju.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208122152.BAA17214>