From owner-freebsd-questions@FreeBSD.ORG Wed May 29 19:32:19 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 67D1043E for ; Wed, 29 May 2013 19:32:19 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 00E572D6 for ; Wed, 29 May 2013 19:32:18 +0000 (UTC) Received: by mail-ea0-f174.google.com with SMTP id z7so5463645eaf.19 for ; Wed, 29 May 2013 12:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AVEmB8F/UCzawLVW3DkAa+esNOg7DmwYirtqYAGbLLw=; b=dlgy9PyTo7JnZmKe87nwpesZ+gQUevEKXdLSE9AEHEwa3labEFVR2xMagAevEQMlVs g/8xFX9Bp9+LF1j12q7lUue5S3RA1yZpyMiWtsk75t9q37h4BoX+goC3EFapaiOKxFAd 6uS/QO7SbO8b7oz/XaABqMUSQTWrjVhFJOq+bLYmDSKj8Ylyw7+9s1tlgs5TAqSBpXpe WzC8RDcH2fzaAgrN3oz8Cot/RhTTTroJanzeoaMGWgrFg+erTsWCpuV4IODkdVoUxPPh ZLgkehu+JzPHwrKRYNOZB7nVA/IHW86fA/58RJoFstUQC8UP2RL1MhF9+1yH+YiIP57i qW4Q== MIME-Version: 1.0 X-Received: by 10.14.216.9 with SMTP id f9mr5890030eep.54.1369855938061; Wed, 29 May 2013 12:32:18 -0700 (PDT) Received: by 10.15.99.199 with HTTP; Wed, 29 May 2013 12:32:17 -0700 (PDT) In-Reply-To: <20130529154554.230e4e93@gumby.homeunix.com> References: <20130528230140.A5B396F448@smtp.hushmail.com> <51A541B5.3010905@gmail.com> <1369801479.2670.YahooMailNeo@web190706.mail.sg3.yahoo.com> <698624A1-FC5F-4537-8C95-EC971CD2EE1A@kraus-haus.org> <20130529154554.230e4e93@gumby.homeunix.com> Date: Wed, 29 May 2013 13:32:17 -0600 Message-ID: Subject: Re: BSD sleep From: Modulok To: RW Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org 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 19:32:19 -0000 I'm personally a fan of a forest-green bike shed myself... >> It would still just be doing one thing - sleeping. I agree. Perfect solution fallacy aside, a sleep option with basic time increments would be useful for real-world purposes. I'm in favor of computing it as a multiple of seconds as previously outlined. We don't need to contrive the sleep function for every possible corner case until it's reduced to something complicated, buggy and unreliable. As long as it doesn't break existing code, new and useful options are appreciated. As a programmer, if I say sleep for 1 hour I expect it to sleep for 3600 local seconds from the time the call is made until it wakes up again without any absurd gotchas. If the real-world time elapsed is more or less than 3600 seconds due to an internal clock error - fine. That's a different problem altogether. My 2 cents. -Modulok- On 5/29/13, RW wrote: > On Wed, 29 May 2013 10:01:53 -0400 > Paul Kraus wrote: > >> Agreed. When I first started dealing with Unix professionally (1995, >> I started playing with Unix-like OSes almost 10 years earlier) I was >> taught that each Unix command does one thing and does it well. > > It would still just be doing one thing - sleeping. Support for units > usually comes under "and does it well". I wouldn't want to have to > pipe df through awk to get MBs, or complicate "find" with arithmetic. > > Unit support in sleep is a perfectly legitimate thing to ask for, I > don't think it particularly useful though, and leap-second support is > close to pointless. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >