On 19/04/06, Andreas Jellinghaus <[EMAIL PROTECTED]> wrote: > Hi, Hello,
> does anyone know how we can solve this problem? > using two cards at the same time does currently > not work: You have two cards and only one reader or also two readers? > if C_Initialize is called the second card blocks if there is > already an open session. C_Initialize looks at all readers, > whether in use or not. The calling chain is: > C_Initialize > -> __card_detect_all > -> card_detect > -> pkcs15_bind > -> sc_pkcs15_bind > -> sc_lock > -> pcsc_lock > -> SCardBeginTransaction > -> SYS_Usleep > -> _nanosleep_nocancel > > is there a way to find out if a reader is already in use? > or is there an option so pcsc_lock could fail if the > reader is locked, rather than wait? Do you have the same behavior under Windows? I could change SCardBeginTransaction() to return an error but: - I don't know what error code to return - I don't want to diverge from MS implementation Bye, -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
