From owner-freebsd-hackers Sun Oct 12 17:10:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA00326 for hackers-outgoing; Sun, 12 Oct 1997 17:10:35 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from usr05.primenet.com (tlambert@usr05.primenet.com [206.165.6.205]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA00321 for ; Sun, 12 Oct 1997 17:10:33 -0700 (PDT) (envelope-from tlambert@usr05.primenet.com) Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id RAA02387; Sun, 12 Oct 1997 17:10:24 -0700 (MST) From: Terry Lambert Message-Id: <199710130010.RAA02387@usr05.primenet.com> Subject: Re: wish /bin/sleep handled fractions of a second. To: ache@nagual.pp.ru (=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?=) Date: Mon, 13 Oct 1997 00:10:24 +0000 (GMT) Cc: tlambert@primenet.com, xaa@stack.nl, joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.ORG, denny1@home.com In-Reply-To: from "=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?=" at Oct 13, 97 01:58:10 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Yes. I prefer that someone else fix the man page after this patch is > > committed. > > You broke /bin/sleep POSIXness with your patch (for .* fraction). Read > about different sleep and usleep calls signal reaction. sleep supposed to > exit immediately (POSIX requirement) while usleep not (traditional BSD). > We need to fix usleep to do the same as sleep first to not break > /bin/sleep It's usleep that's broken, it's usleep that needs fixed, IMO. A fixed usleep is the most correct action. Note that it only inconveniences people who use the non-POSIX extension, yet expect POSIX behaviour. I can live with tha until usleep is fixed. Probably the patch should be committed and a PR submitted against usleep() for not following POLA with regard to how it acts relative to other members of its immediate family (ie: sleep()). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.