Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 09:39:05 +0100 (CET)
From:      Soren Schmidt <sos@freebsd.dk>
To:        n_hibma@FreeBSD.org (Nick Hibma)
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/moused moused.c
Message-ID:  <199911300839.JAA20795@freebsd.dk>
In-Reply-To: <199911291721.JAA26708@freefall.freebsd.org> from Nick Hibma at "Nov 29, 1999 09:21:10 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




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