> 2007/12/4, Nagy Gabor <[EMAIL PROTECTED]>: > > Hi! > > Hello, > > > You probably know about this problem, because I found the following comment > in > > ifdhandler.c: > > /* This "warm up" sequence is sometimes needed when pcscd is > > * restarted with the reader already connected. We get some > > * "usb_bulk_read: Resource temporarily unavailable" on the first > > * few tries. It is an empirical hack */ > > > > Well, this hack may be acceptable, but I have a problem: > > When pcscd does this hack, it _lies_ to the caller app, that the reader is > not > > present. This is a problem, because most people (like me), have an S50pcscd > in > > /etc/rc?.d/ and something like S51card_eventmanager which depends on pcscd. > On > > my machine card_eventmanager (I use my patched version: > > http://jedlik.vein.hu:60080/linux/scard_tools/scard_tools-en.html) cannot > start, > > because SCardListReaders returns with empty reader-list. It took a while > to > > found the reason for this problem (I had to add 'sleep 4' to the end of > pcscd > > init-script as a workaround). > > So I would prefer if SCardListReaders returned with the correct results > (even if > > my program must wait 4 sec for the result) or an internally delayed pcscd > start. > > The readers may not be immediately available after the script to start > pcscd has finished. pcscd may not even have really started when the > script exits. > > A solution would be for card_eventmanager to wait until a reader is > available. > > bye > > -- > Dr. Ludovic Rousseau
Dear Mr. Rousseau! I've just run into the following issue (which is not a problem for me, because I don't want to let my users unplug and replug their card readers -- but may be a bug): My ccid compatible usb reader simply doesn't work if it is plugged after pcscd start. I started pcscd (1.4.3) with -d and -f, and I log here what happens if I plug in my reader (libccid 1.3.0): ---------- pcscdaemon.c:566:signal_reload() Reload serial configuration pcscdaemon.c:578:signal_reload() End reload serial configuration pcscdaemon.c:566:signal_reload() Reload serial configuration pcscdaemon.c:578:signal_reload() End reload serial configuration pcscdaemon.c:566:signal_reload() Reload serial configuration pcscdaemon.c:578:signal_reload() End reload serial configuration ---------- But nothing else... And pcsc doesn't see my reader at all (however, reader works fine if I start pcscd with reader plugged) My readers.conf is "empty" (all lines are commented). Bye ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/ _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
