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 or so in the openct pre-decessor.
hmm, not 100% sure how openct works in that regards. but we can change
the code, I think kernels with this bug are no longer relevant / we
can expect kernels to be fixed now.

also we could optimize those loops - make sure if nothing happends, that
nothing is written to the syslog (unless someone has a very high debug
option). but I guess the code is already ok.

when it comes to the individual drivers: sorry, I have no clue about them
other than the very simple etoken driver and friends.

Regards, Andreas

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to