Created attachment 1022342 [details] simple test case The PKCS#11 Usage Guide recommends calling C_Initialize() in the child after a fork(), on any PKCS#11 provider module which was loaded in the parent. OpenSC craps itself if you do, because it confuses pcscd.
cf. http://sourceforge.net/p/opensc/mailman/message/34073754/
I added a test case for this in the 0.15.0 release. Run pkcs11-tool --test-fork and watch it fail. Unfortunately a *fix* didn't make it to the release.
https://github.com/OpenSC/OpenSC/pull/493
opensc-0.15.0-2.fc23 has been submitted as an update for Fedora 23. https://admin.fedoraproject.org/updates/opensc-0.15.0-2.fc23
opensc-0.15.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.