From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 21 14:30:25 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9ECE16A4D0 for ; Mon, 21 Feb 2005 14:30:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B92943D5A for ; Mon, 21 Feb 2005 14:30:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1LEUPo5064118 for ; Mon, 21 Feb 2005 14:30:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1LEUPjx064117; Mon, 21 Feb 2005 14:30:25 GMT (envelope-from gnats) Date: Mon, 21 Feb 2005 14:30:25 GMT Message-Id: <200502211430.j1LEUPjx064117@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Robert Millan Subject: Re: bin/77786: moused dies when unplugging mouse X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Robert Millan List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 14:30:25 -0000 The following reply was made to PR bin/77786; it has been noted by GNATS. From: Robert Millan To: Gleb Smirnoff Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/77786: moused dies when unplugging mouse Date: Mon, 21 Feb 2005 15:16:28 +0100 On Mon, Feb 21, 2005 at 01:29:20PM +0300, Gleb Smirnoff wrote: > On Sun, Feb 20, 2005 at 05:08:19PM +0100, Robert Millan wrote: > R> >Description: > R> When moused is being used to process input from an USB mouse, and the > R> mouse is dettached, causing the /dev/ums0 to disappear, moused will > R> die (complains about open() failing). So after reattaching the mouse > R> you'll have to restart the daemon manualy. > R> > R> With this patch, moused's behaviour is closer to what you'd expect from > R> a daemon and instead of diing it polls de device untill it can be > R> open again. > > This is correct behavior. First, mouse may never return to USB port. What for > do we need moused daemon running? Second, another mouse can be inserted, with > another protocol. > > The correct fix for your problem is correct /etc/devd.conf, containing this > attach rule: > > attach 100 { > device-name "ums[0-9]+"; > action "/etc/rc.d/moused start $device-name"; > }; > > If you don't mind, I close the PR. Ah, ok. Sorry for the confusion. -- .''`. Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S) : :' : `. `' http://www.debian.org/ports/kfreebsd-gnu `-