From owner-freebsd-questions@FreeBSD.ORG Wed May 29 14:13:20 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4419AB83 for ; Wed, 29 May 2013 14:13:20 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ea0-x22c.google.com (mail-ea0-x22c.google.com [IPv6:2a00:1450:4013:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id C4BF03C6 for ; Wed, 29 May 2013 14:13:19 +0000 (UTC) Received: by mail-ea0-f172.google.com with SMTP id d10so5343312eaj.17 for ; Wed, 29 May 2013 07:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=5T1K5KkqQbBLUr4BaozRsvydqGngO7UVVSCKoH8x9S8=; b=ToLdaNK7WuA2l1kvsH1rDchaPWAtq7RMrXDXVchXXCJCjPbsooEHxcW9GrkwQp18FV F1l7H4VeO+5RDyCAn/j66Y+EsKvACm69sLmEXPNsgi7ZdgkNDCySnZiwOaD5L/vnQRdZ oOmynXSUyDA3QE2gEwGK5qMuxSFeT2IQ2VmwTVtoKQ4/6eVZtk+RIONMMvjcT6kpFz++ vRKXJFDiwff2beRPGJzLpncxsAuxx48NqXD8yKjXd29EpJtXKQmPHg/TdjUBQHcEihCS Z65KA5lkDmqH5tYNH18o6MmuuNo8f/oD5lTjsWwYZh7MnwNcplDQlAjMIunT+RcPvMH5 F4UA== X-Received: by 10.14.224.201 with SMTP id x49mr3642862eep.14.1369836798866; Wed, 29 May 2013 07:13:18 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id y2sm54242632eeu.2.2013.05.29.07.13.17 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 29 May 2013 07:13:18 -0700 (PDT) Date: Wed, 29 May 2013 15:13:16 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: BSD sleep Message-ID: <20130529151316.74797552@gumby.homeunix.com> In-Reply-To: References: <20130528230140.A5B396F448@smtp.hushmail.com> <51A541B5.3010905@gmail.com> <51A59C60.3010709@FreeBSD.org> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 14:13:20 -0000 On Wed, 29 May 2013 12:04:47 +0100 Chris Rees wrote: > On 29 May 2013 07:13, "Matthew Seaman" wrote: > > Right. The fact that on very rare occasions a minute may not have > > 60 seconds in it plus many other corner cases in calculating the > > current wall-clock time is an amusing irrelevance. > > And in any case where you cared about the leap second, you would probably care that sleep doesn't wake-up on a second boundary, and can end-up in the next second. > OK, but is this really something the OS should handle? I'm sure sleep > `expr 3600 \* 2` will suffice and is perfectly readable, including > being more portable. +1