From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 13 00:49:33 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F5B816A4B3; Mon, 13 Oct 2003 00:49:33 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0343043FBD; Mon, 13 Oct 2003 00:49:33 -0700 (PDT) (envelope-from jmg@FreeBSD.org) Received: from freefall.freebsd.org (jmg@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9D7nWFY038583; Mon, 13 Oct 2003 00:49:32 -0700 (PDT) (envelope-from jmg@freefall.freebsd.org) Received: (from jmg@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9D7nWF9038579; Mon, 13 Oct 2003 00:49:32 -0700 (PDT) (envelope-from jmg) Date: Mon, 13 Oct 2003 00:49:32 -0700 (PDT) From: John-Mark Gurney Message-Id: <200310130749.h9D7nWF9038579@freefall.freebsd.org> To: boris@cs.tu-berlin.de, jmg@FreeBSD.org, freebsd-bugs@FreeBSD.org 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, 13 Oct 2003 07:49:33 -0000 Synopsis: kevent(2) ignores timeout if nevents == 0 State-Changed-From-To: open->feedback State-Changed-By: jmg State-Changed-When: Mon Oct 13 00:46:53 PDT 2003 State-Changed-Why: to quote the man page: If timeout is a non-NULL pointer, it specifies a maximum interval to wait for an event, The behavior is correct since you wanted to wait for 0 events, and since it has delivered all the events it can (none), it returns. Unless provide with good reason (or maybe a patch to the manpage to document this feature?) I will close the PR in 5 days. http://www.freebsd.org/cgi/query-pr.cgi?pr=45291