agent: Change intialization of assuan socket system hooks.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 7 Dec 2017 13:33:58 +0000 (14:33 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Dec 2017 13:33:58 +0000 (14:33 +0100)
commitb9677ba16f6b386896781a751e4b2fc839e3ec81
tree2862887c8a1ddc9942fa45d2a6067288b4234bb3
parent1524ba9656f0205d8c6ef504f773b832a7a12ab9
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: 3378
Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c