From owner-cvs-all Mon Aug 7 9:45:55 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E899137B9A6; Mon, 7 Aug 2000 09:45:43 -0700 (PDT) (envelope-from jlemon@FreeBSD.org) Received: (from jlemon@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA62819; Mon, 7 Aug 2000 09:45:43 -0700 (PDT) (envelope-from jlemon@FreeBSD.org) Message-Id: <200008071645.JAA62819@freefall.freebsd.org> From: Jonathan Lemon Date: Mon, 7 Aug 2000 09:45:43 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_event.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jlemon 2000/08/07 09:45:43 PDT Modified files: sys/kern kern_event.c Log: Fix bug with timeout; previously, when attempting to poll the kqueue by passing a zero-valued timeout, the code would always sleep for one tick. Change code to avoid calling tsleep if we have no intention of sleeping. Bring in bugfix from sys_select.c, r1.60 which also applies here. Modify error handling slightly; passing in an invalid fd will now result in EBADF returned in the eventlist, while an attempt to change a knote which does not exist will result in ENOENT being returned. Previously such attempts would fail silently without notification. Pointed out by: nicolas.leonard@animaths.com Rick Reed (rr@yahoo-inc.com) Revision Changes Path 1.15 +23 -15 src/sys/kern/kern_event.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message