From owner-cvs-all Tue Nov 30 9:43:34 1999 Delivered-To: cvs-all@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 8D44315996; Tue, 30 Nov 1999 09:43:20 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id JAA26004; Tue, 30 Nov 1999 09:43:12 -0800 (PST) (envelope-from dillon) Date: Tue, 30 Nov 1999 09:43:12 -0800 (PST) From: Matthew Dillon Message-Id: <199911301743.JAA26004@apollo.backplane.com> To: Nick Hibma Cc: "Andrey A. Chernov" , Soren Schmidt , CVS Committers FreeBSD , cvs-all@FreeBSD.ORG, "Louis A. Mamakos" Subject: Re: cvs commit: src/usr.sbin/moused moused.c References: Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk :On Tue, 30 Nov 1999, Andrey A. Chernov wrote: : :Argh! : : : /* mouse event */ :- if (read(rodent.mfd, &b, 1) == -1); :+ if (read(rodent.mfd, &b, 1) == -1) : return; /* file seems to be closed on us */ : :Sorry about that, folks. Committed the change below. EWOULDBLOCK cannot :occur as we did a select waiting for data to become available. You *cannot* depend on this. There are a number of situations where select() can return prematurely (for example, due to a signal), and even situations where select() can return a ready descriptor that is not ready (as bde mentioned). -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message