Re: [opensc-devel] openct - removing USB reader polling

2008-12-21 Thread Alon Bar-Lev
Thanks Andreas, Thank you for your comment. I am for dropping old kernels hacks... And provide better solution for users. I now understand why mainloop wakes up... i will try to implement something. Alon. On 12/21/08, Andreas Jellinghaus wrote: > in usb apps you can't poll a usb file handle wit

Re: [opensc-devel] openct - removing USB reader polling

2008-12-21 Thread Andreas Jellinghaus
in usb apps you can't poll a usb file handle without timeout - older kernels have a bug, where device removed event is not handled when it happends, but the application is only notified after the timeout is over. if that is 0, the applications waits forever. thats why we had a loop with 1 second o