From owner-cvs-all Tue Nov 30 1: 1:31 1999 Delivered-To: cvs-all@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 5550314D3E; Tue, 30 Nov 1999 01:01:26 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id JAA20795; Tue, 30 Nov 1999 09:39:05 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <199911300839.JAA20795@freebsd.dk> Subject: Re: cvs commit: src/usr.sbin/moused moused.c In-Reply-To: <199911291721.JAA26708@freefall.freebsd.org> from Nick Hibma at "Nov 29, 1999 09:21:10 am" To: n_hibma@FreeBSD.org (Nick Hibma) Date: Tue, 30 Nov 1999 09:39:05 +0100 (CET) Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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 ?? -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message