Closed tombull closed 5 years ago
Error experienced on MacOS 10.14.3.
Code to replicate:
import os pid = os.fork() from smartcard.scard import SCardEstablishContext, SCardGetErrorMessage, SCARD_SCOPE_USER hresult, hcontext = SCardEstablishContext(SCARD_SCOPE_USER) print('Result from {} process: {}'.format('child' if pid == 0 else 'parent', SCardGetErrorMessage(hresult)))
Gives result:
Result from child process: Service not available. Result from parent process: Command successful.
Just read this blog post. It's a bug in MacOS.
Error experienced on MacOS 10.14.3.
Code to replicate:
Gives result: