Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 09:43:12 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Nick Hibma <hibma@skylink.it>
Cc:        "Andrey A. Chernov" <ache@FreeBSD.ORG>, Soren Schmidt <sos@freebsd.dk>, CVS Committers FreeBSD <cvs-committers@FreeBSD.ORG>, cvs-all@FreeBSD.ORG, "Louis A. Mamakos" <louie@TransSys.COM>
Subject:   Re: cvs commit: src/usr.sbin/moused moused.c
Message-ID:  <199911301743.JAA26004@apollo.backplane.com>
References:   <Pine.BSF.4.20.9911301113510.1435-100000@henny.jrc.it>

next in thread | previous in thread | raw e-mail | index | archive | help

: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 
					<dillon@backplane.com>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911301743.JAA26004>