Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2010 13:44:52 +0200
From:      Peer Stritzinger <peerst@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: FreeBSD 8: libusb async mode + select(2) = nogo?
Message-ID:  <AANLkTi=iLYOBsZFeHOxoQvEx3%2BjgrhV-0Zo1kB_PUrDV@mail.gmail.com>
In-Reply-To: <201007231921.45803.hselasky@c2i.net>
References:  <AANLkTikk7L-63c6wQb0YKoYovGKPcT932Lc9n6mRrmK9@mail.gmail.com> <201007231657.47682.hselasky@c2i.net> <AANLkTi=a__R7gNvE371zs1vNpMXLFXS-09joihFQc-_H@mail.gmail.com> <201007231921.45803.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
> Should work, but it might be that the second poll, when you try to process the
> events, don't work like expected. After any event on the two fd's you should
> call "libusb_handle_events_locked()" using a "tv = NULL".

Rewrote the program to use poll instead of select (which does fit
libusb better even if I like select better generally)
nothing else changed only poll instead of select.

=> Works like a charm

So to sum it up: select + libusb seems not to work, poll + libusb works however.

So is this a general FreeBSD select vs. poll issue or just with the USB stack?

How can I help debug this further?

Regards
Peer Stritzinger



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=iLYOBsZFeHOxoQvEx3%2BjgrhV-0Zo1kB_PUrDV>