how to make dirmngr a singleton

Hans-Christoph Steiner hans at guardianproject.info
Thu Oct 25 04:47:39 CEST 2012



On 10/24/2012 10:42 PM, Hans-Christoph Steiner wrote:
> 
> 
> On 10/24/2012 09:15 AM, Werner Koch wrote:
>> On Tue, 23 Oct 2012 19:33, hans at guardianproject.info said:
>>
>>> threads.  They often stay alive when the app itself quits.  gpg-agent seems to
>>> automatically find whether its running and refuse to start a second one,
>>> that's good.  But dirmngr does not seem to do that, so after starting and
>>> stopping the app, there will be multiple dirmngrs running.
>>
>> Please configure GnuPG with
>>
>>   --enable-dirmngr-auto-start
>>
>> this does what you want.  It should be the default for 2.1, though.
> 
> 
> Using the --enable-dirmngr-auto-start flag seems to have enabled the singleton
> mode.  If that mode is meant to the be the default, that didn't work before i
> added the flag.

Hmm, ok, this might be due to my code.  The android code runs a gpg-agent and
a dirmngr at startup.  It seems that gpg-agent checks if another one is
running and quits, while dirmngr does not.  If that's the case, I can handle
this differently, that should be easy to do on the Android side.

.hc



More information about the Gnupg-devel mailing list