diff options
author | NIIBE Yutaka <[email protected]> | 2016-10-04 00:01:13 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-10-04 00:01:13 +0000 |
commit | eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d (patch) | |
tree | 07b0c81acce42597ce8b856f3b16b4845c8c2eab /g10/parse-packet.c | |
parent | agent: Remove the warning for the GKR hijacking. (diff) | |
download | gnupg-eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d.tar.gz gnupg-eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d.zip |
agent, dirmngr, scd: npth_init must be after fork.
* agent/gpg-agent.c (thread_init_once, initialize_modules): New.
(main): Make sure no daemonizing-fork call after npth_init, and no npth
calls before npth_init, with care of npth calls by assuan hooks.
* dirmngr/dirmngr.c (thread_init): New.
(main): Make sure npth_init must not be called before daemonizing fork.
* scd/scdaemon.c (main): Likewise.
--
It is simply the best for nPth not to allow the daemonizing fork after
npth_init, because semantics and implementations of forked child process
in a threaded application is a difficult corner case.
GnuPG-bug-id: 1779
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions