Hi Nevil, many thanks for your feedback.
2006/5/8, Nevil Thatcher <[EMAIL PROTECTED]>:
... 3). I found another problem with libusb on netBSD in that the Function usb_interrupt_read() calls read() which blocks on read from usb until buffer is full. In my case this was seemingly infinite. A timeout is passed to the function but netBSD does not seem to respect this. I have been meaning to lodge a bug-report but haven't as yet. To fix (hack) I changed bsd.c in libusb as follows: Change Fd = ensure_ep_open(dev, ep, 0, O_RDONLY) To Fd = ensure_ep_open(dev, ep, 0, O_RDONLY | O_NONBLOCK) This just tells the read to return immediately if no data from usb rather than block. OS buffers device anyway.
have you also forwarded this to the libusb maintainers? Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

