Home GnuPG
Diffusion GnuPG b9677ba16f6b

agent: Change intialization of assuan socket system hooks.

Description

agent: Change intialization of assuan socket system hooks.

* agent/gpg-agent.c (initialize_modules): Add hook again.
(main): Remove setting of the system houk but add scoket system hook
setting after assuan initialization.

Thread initialization is better to be deferred after fork (in case of
UNIX). assuan_sock_init should be earlier. Thus, we need to change
system hooks for assuan_sock_* interface. Or else, on Windows, it may
cause hang on server.

Updates-commit: 1524ba9656f0205d8c6ef504f773b832a7a12ab9

  • GnuPG-bug-id: T3378
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
gniibeAuthored on Dec 7 2017, 2:33 PM
wernerCommitted on Dec 7 2017, 2:33 PM
Parents
rG1524ba9656f0: agent: Set assuan system hooks before call of assuan_sock_init.
Branches
Unknown
Tags
Unknown
Tasks
T3378: gpg-agent.exe hanging after left to idle for a while