From owner-freebsd-hackers Mon Jan 24 12:28:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 5229315201; Mon, 24 Jan 2000 12:28:08 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id MAA07167; Mon, 24 Jan 2000 12:51:50 -0800 (PST) Date: Mon, 24 Jan 2000 12:51:50 -0800 From: Alfred Perlstein To: Mikhail Teterin Cc: David Schwartz , imp@village.org, hackers@FreeBSD.ORG, bde@FreeBSD.ORG, eischen@vigrid.com Subject: Re: kern/13644 Message-ID: <20000124125150.C26520@fw.wintelcom.net> References: <000001bf669f$94c4ec70$021d85d1@youwant.to> <200001242006.PAA35725@misha.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200001242006.PAA35725@misha.cisco.com>; from mi@aldan.algebra.com on Mon, Jan 24, 2000 at 03:06:26PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Mikhail Teterin [000124 12:35] wrote: > David Schwartz once wrote: > > > The man page is correct and the implementation is correct. > > Several people, said the man pages are broken: > > Bruce Evans on Dec 28: > > If timeout is a non-nil pointer, it specifies > > a maximum interval to wait for the selection > > to complete. > > This is a bug in the man page. It is so poorly > worded that it is broken. "maximum" here means > "minimum" in the case where no selected event > occurs. > > Daniel Eischen on Jan 23: > You have to guarantee that the actual time is > greater than or equal to the amount of time > specified. > > Warner Losh on Jan 23: > : Could you provide the chapter/verse number of > : where POSIX spec contradicts the man pages? It > : will help me make my case on the TCL forum, > : since the TCL developers remain under the > : mistaken assumption, that select() may return > : earlier, but never later than specified. > > Somewhere in the archives have a pointer to the > unified unix spec for select. Might want to look > for it. A useful regular expression might be > http://www.*/select.*. > > This is becoming ridiculous. Somehow, I get a feeling a bunch of people > manage to agree with each other on a subject they express exactly > opposite opinions. The manpage has been updated in -current: If timeout is a non-nil pointer, it specifies the maximum interval to wait for the selection to complete. System activity can lengthen the in- terval by an indeterminate amount. If timeout is a nil pointer, the select blocks indefinitely. To effect a poll, the timeout argument should be non-nil, pointing to a zero-valued timeval structure. If no one objects I'll be committing it to -stable and praying to the gods that this thread dies. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message