Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2013 15:11:04 +0300
From:      Alexander Yerenkow <yerenkow@gmail.com>
To:        Jason Birch <jbirch@jbirch.net>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: BSD sleep
Message-ID:  <CAPJF9wk83ZJzpmEXtsLZCtkEWzLJjDsCaKbK4c%2BLR2FsUMLg0g@mail.gmail.com>
In-Reply-To: <CAA=KUhuHGa5S4_OPP6hfHikDOEyMLar1PCAHOBUEi9DLar3DqA@mail.gmail.com>
References:  <20130528230140.A5B396F448@smtp.hushmail.com> <51A541B5.3010905@gmail.com> <1369801479.2670.YahooMailNeo@web190706.mail.sg3.yahoo.com> <CAPJF9wnGg8gjLew4ER9%2Byw47bX_9xXuZAgkZxfMVjYS_6CktJA@mail.gmail.com> <CAA=KUhuHGa5S4_OPP6hfHikDOEyMLar1PCAHOBUEi9DLar3DqA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm just saying that there's pretty space for discussion.
If someone raised this now, why not discuss it now.

> If you sleep one hour, do you sleep one hour from now or one hour from
the system clock which may change in the next hour? If it's the system
clock, you may sleep for ten minutes or ten hours. If you need to sleep for
3600 seconds, that's simple and understandable.

How about rephrase it:

> If you sleep 3600 seconds, do you sleep 3600 seconds from now or 3600
seconds from the system clock which may change in the next hour? If it's
the system clock, you may sleep for ten minutes or ten hours.

How "way of specifying period" changing the fact that "internal minimal
unit of sleep" is not clearly specified in manpage?
Also, there no info on how DST/ ntp time changes affects of running sleeps.


I don't see right now how new flag (which currently if specified makes
`sleep` exit with help), could break something, but I see that this is
could be useful in some cases.
This also raise question what sleep should do if something specified
incorrectly, like sleep 2h30m30m , or 1h1h or else.

And also if any changes would be accepted, this should be specified in
manpage (that one about `m` as month).

About non-portable feature with non-integers, it was just side observation.


-- 
Regards,
Alexander Yerenkow



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPJF9wk83ZJzpmEXtsLZCtkEWzLJjDsCaKbK4c%2BLR2FsUMLg0g>