From owner-freebsd-bugs@FreeBSD.ORG Sun Oct 19 17:45:41 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8EF816A4B3 for ; Sun, 19 Oct 2003 17:45:41 -0700 (PDT) Received: from ns1.itga.com.au (ns1.itga.com.au [202.53.40.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23E6F43F85 for ; Sun, 19 Oct 2003 17:45:40 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns1.itga.com.au (8.12.9/8.12.9) with ESMTP id h9K0jDR5074809; Mon, 20 Oct 2003 10:45:13 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id KAA22822; Mon, 20 Oct 2003 10:45:12 +1000 (EST) Message-Id: <200310200045.KAA22822@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: John Polstra In-reply-to: Your message of Sun, 19 Oct 2003 10:38:36 -0700. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 20 Oct 2003 10:45:12 +1000 Sender: gnb@itga.com.au cc: Boris Nikolaus cc: freebsd-bugs@freebsd.org cc: John-Mark Gurney Subject: Re: kern/45291: kevent(2) ignores timeout if nevents == 0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 00:45:41 -0000 > They absolutely rely on this behavior of select. If anybody changed > it they'd have a whole lot of broken programs on their hands. You may > view it as a case of lazy programmers using the wrong system call for > sleeping, but in fact it is just the proper and most sensible behavior > for select to have at this boundary condition. It's not just lazy either. Up to and including 4.2 BSD, the _only_ way to get sub-second sleeps was to use select() with no FDs. SysV / AT&T varients couldn't do it at all. nanosleep() is a much later addition. Even Solaris 2.6/2.8 has this in the nanosleep man page: ENOSYS nanosleep() is not supported by this implementa- tion.