Hey, Ah ok i see, cool.
Hmm, couldn't find an svn-repository to check out pam_pkcs11 from. Have I missed something ? /Patrik On 08/25/2010 10:32 AM, Ludovic Rousseau wrote: > 2010/8/24 Patrik Martinsson<patrik.martins...@smhi.se>: > >> Hey folks, >> > Hello, > > >> I've attached a small patch that makes the call to SCardEstablishContext >> before we daemonize (if we wish to do so ofc.). >> If the call comes before we daemonize(fork) the pc/sc handle gets >> invalidated thus it wont find any readers. >> (http://pcsclite.alioth.debian.org/api/winscard__clnt_8c.html#aaa02e1f70d68a502cd92ed066c44542f) >> >> I don't know if anyone successfully used card_eventmgr in daemon mode >> before, I would say that, that was not possible, but maybe Im wrong here ? >> > The code of SCardCheckDaemonAvailability() has evolved. In the recent > versions the function do not invalidate handles any more. > Some C libraries (in embedded for example) uses different pid for > different threads of a same process. So using getpid() was nor working > as expected. > > I just fixed the doxygen doc in pcsc-lite in revision 5183. > > >> Any comments ? >> > Nice catch. Fixed in revision 447. > > Thanks > > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel