]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make sure moused is exiting as quick as possible after that the
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 24 Sep 2012 17:13:33 +0000 (17:13 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 24 Sep 2012 17:13:33 +0000 (17:13 +0000)
commit08f950a3025c710ae8a719539030d587fcbbad64
tree76f05e4d77105cda2964b074b133fd41ebb2b27d
parent391d3f18dcd9899b85b5cc9b5eef22031f3b297a
Make sure moused is exiting as quick as possible after that the
umsX character device returns a read error. Update devd.conf rules
to use "DEVFS" events which are generated after that the umsX
character device node has been created/destroyed, and then there
should be no need for moused to wait up to 10 seconds for umsX to
be ready. Opening umsX should not fail except if the kernel is low
on memory. In that case the user can replug the USB mouse or use
"usbconfig" to reset the device. In case of USB mouse devices,
moused should neither retry to open its character device,
once the first read error has happened. This is an indication
of device detach.

MFC after: 1 week
etc/devd.conf
usr.sbin/moused/moused.c