Home GnuPG
Diffusion GnuPG c97198371b73

dirmngr: Fix the cleanup zombies fix (685b782).
c97198371b73Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

dirmngr: Fix the cleanup zombies fix (685b782).

* dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Do not close the
stdout reader after EOF from read_log_data.
* dirmngr/crlcache.c (crl_cache_reload_crl): Close the reader before
the next iteration.

I assumed that the log_fd also has a reader object but that reader
object is used for stdout and needs to be closed by the consumer.

The real bug with the non-released ldap_wrapper control objects was
that when looping over distribution points we did not closed the used
reader object before the next iteration. Now, the test case had more
than one DP and thus we lost one reader object.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 18 2015, 1:34 PM
Parents
rG010d26a85bfe: agent: Print a warning for obsolete options.
Branches
Unknown
Tags
Unknown