2010/2/8 Martin Vogt <[email protected]>: > Ludovic Rousseau wrote: >> Can you explain why you need to patch testpcsc? >> Why do you want to add a timeout? > > My idea was to automatically monitor the correct > behaviour of the reader. > I run a script and it checks for example if a card is present > etc. (it blocks forever without this patch) > > For this I modified testpcsc, if everything is green, fine > otherwise eg. ->mail. > But then I noticed that the test program disconnects my running > sessions, which makes the idea to monitor anything useless... > The disconnect is triggered by SCardReconnect/SCardDisconnect > so maybe I drop that call too.....
testpcsc uses: SCardDisconnect(hCard, SCARD_UNPOWER_CARD); What you want is: SCardDisconnect(hCard, SCARD_LEAVE_CARD); See [1]. But you should write your own program. testpcsc does many things you do not want. > PS: I saw that the latest svn got rid of the SHM interface and uses > sockets, very nice. This opens the possibility to make pcsc available > over network easier than before.(I already thought about doing this...) That was one of the motivations for removing the shared memory. Bye [1] http://pcsclite.alioth.debian.org/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
