Deleted Added
full compact
48c48
< __FBSDID("$FreeBSD: head/usr.sbin/moused/moused.c 233090 2012-03-17 16:40:15Z hselasky $");
---
> __FBSDID("$FreeBSD: head/usr.sbin/moused/moused.c 240891 2012-09-24 17:13:33Z hselasky $");
410a411
> int is_removable; /* set if device is removable, like USB */
436a438
> .is_removable = 0,
573d574
< static int retry;
879,882c880,881
< retry = 1;
< if (strncmp(rodent.portname, "/dev/ums", 8) == 0) {
< retry = 5;
< }
---
> if (strncmp(rodent.portname, "/dev/ums", 8) == 0)
> rodent.is_removable = 1;
891,897c890,891
< for (i = 0; i < retry; ++i) {
< if (i > 0)
< sleep(2);
< rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK);
< if (rodent.mfd != -1 || errno != ENOENT)
< break;
< }
---
>
> rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK);
946a941,942
> if (rodent.is_removable)
> exit(0);