On 25/05/06, Wei Hu <[EMAIL PROTECTED]> wrote:
Hi,

 I wrote a small program to test the card insertion and removal events. It
is linked into libpcsclite.so. I discovered a SCardCancel() hang problem in
libpcsclite when running this program. Attached are simple programs to
reproduce this on Redhat Linux with smartcard daemon pcscd running.

The problem is not with SCardCancel() but with SCardReleaseContext().

You are trying to release a context already used by the other thread
in SCardGetStatusChange. Since you killed the SCardGetStatusChange()
thread the mutex will never been released and you are in a dead-lock.
If you remove the call to SCardReleaseContext() from
killCardEventMonitor() your code works.

I solved a problem with SCardCancel() in changeset 1879 (as you
already noticed) but this patch is already included in pcsc-lite
1.3.0. If the problem is _really_ with SCardCancel() double check that
you are using pcsc-lite 1.3.0 (or 1.3.1)

Bye,

--
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to