On Wed, 10 Feb 2010, Hans Petter Selasky wrote: > I would not recommend using signals with libusb. It is not portable. > Currently signals are ignored. What you would have to do, is to use
OK. > the timeout argument which you are doing, and have a timekeeper > variable somewhere, or create another thread. Still, when using the > timeout there is a chance you can loose data. The problem is that the timeout seems to be ignored sometimes - that is the only reason I was playing with alarm() at all. I have the timeout set to 100 (milliseconds?) yet I find if I restart the program every now and then it will get stuck on the first read. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
signature.asc
Description: This is a digitally signed message part.
