From owner-cvs-all Tue Nov 30 1:13:40 1999 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 542) id 9674E15843; Tue, 30 Nov 1999 01:13:37 -0800 (PST) Date: Tue, 30 Nov 1999 01:13:37 -0800 From: "Andrey A. Chernov" To: Soren Schmidt Cc: Nick Hibma , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/moused moused.c Message-ID: <19991130011337.B55955@freebsd.org> References: <199911291721.JAA26708@freefall.freebsd.org> <199911300839.JAA20795@freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199911300839.JAA20795@freebsd.dk>; from sos@freebsd.dk on Tue, Nov 30, 1999 at 09:39:05AM +0100 Organization: Biomechanoid Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Tue, Nov 30, 1999 at 09:39:05AM +0100, Soren Schmidt wrote: > It seems Nick Hibma wrote: > > n_hibma 1999/11/29 09:21:10 PST > > > > Modified files: > > usr.sbin/moused moused.c > > Log: > > Bail out on failing the read(). This happens when a USB mouse is > > disconnected. We retry the open in the parent subroutine. > > This breaks moused on my laptop, you are not supposed to bail out on the > read (its on a non-blocking device), just wait for something to happen. > Perhaps you should check errno for EAGAIN ?? I can confirm that. My Genius 3-button mice stop working too :-( -- Andrey A. Chernov http://nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message