[Pcsclite-muscle] socket activation
Ludovic Rousseau
ludovic.rousseau at gmail.com
Fri Feb 23 05:53:07 PST 2018
2018-02-23 11:29 GMT+01:00 Nikos Mavrogiannopoulos <nmav at redhat.com>:
> Hi,
Hello,
> It was reported in fedora bz [0] that an application would trigger
> pcsc-lite server to start (we use systemd socket activation).
>
> The application seems to call `SC(EstablishContext, SCARD_SCOPE_USER,
> nullptr, nullptr, &d->context);` in order to detect a running pcscd and
> fails when pcscd is not yet activated. Is that the expected way to
> detect pcscd running?
To detect if pcscd is running yo can check if /var/run/pcscd/pcscd.pid
exists and contain the pid of a running pcscd process.
But the file name may be in a different place and it not documented.
You should NOT use that.
I don't understand why you would want to know if pcscd if running.
This is not the business of the application. Just use the WinSCard
(PC/SC) API.
> [0].
> https://bugzilla.redhat.com/show_bug.cgi?id=1545027
It looks like a bug in the pcsc-lite RedHat/Centos package. The pcscd
sockey is not activated.
I added my comments in https://bugzilla.redhat.com/show_bug.cgi?id=1545027
Bye
--
Dr. Ludovic Rousseau
More information about the pcsclite-muscle
mailing list