Your Python sample exposed a bug in pcsc-lite. It is now fixed un revision 5344.
I now have: $ ./SCardCancel2.py Context established! context canceled Released context. -- safesign (libaetpkss.so) hangs the process which uses it https://bugs.launchpad.net/bugs/647545 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs