issue with fork

Nikos Mavrogiannopoulos nmav at gnutls.org
Sun Aug 14 05:52:16 PDT 2011


On 08/14/2011 02:29 PM, Ludovic Rousseau wrote:

> Do you think I should change something in the way
> SCardEstablishContext() from pcsc-lite does the fork?
> I don't see how that could cause the problem you describe (but I have
> not look at the p11-kit source code).

Only removing the fork would help. Since p11-kit uses pthread_atfork()
it detects the fork and tries to reinitialize before fork is completed.
The new initialization causes a fork and so on... I think however that
the issue can be solved within p11-kit.


regards,
Nikos


More information about the p11-glue mailing list