From: Johannes E. <joh...@er...> - 2003-05-17 00:59:19
|
On Thu, May 15, 2003, St=E9phane Grundschober <gru...@da...> wro= te: > I've put in the "patches" section of sf an improvement (from my point > of view :-) of the timeout mechanism for interrupt reads. (patch > against linux.c v1.41. I've seen that in the mean time there is a > 1.42... sorry) > > Instead of using an alarm() call (where you have to use a signal > handler), I propose to use a non-blocking ioctl() in combination with = a > sub-second timeout (via a select() call) and real time comparison. > > Ok, the process is then a little bit more "active" than before, but I > hate programming signal handlers... > > Feedback, comments or flame are welcome! I think this is good for 0.1 I wasn't very keen on doing signal handling in the library. I'll fix up usb_interrupt_write in the same manner soon. JE |