Home GnuPG
Diffusion GPGME 58a217b108e4

cpp: Do not close stdout/stderr when destroying EditInteractor

Description

cpp: Do not close stdout/stderr when destroying EditInteractor

* lang/cpp/src/editinteractor.cpp (EditInteractor::Private): Initialize
members 'state' and 'debug' in-class. Add member 'debugNeedsClosing'.
(EditInteractor::Private::Private): Remove members initializers.
Remember if 'debug' needs to be closed.
(EditInteractor::Private::~Private): Only close 'debug' if it needs to
be closed.

This fixes the problem that after destroying an edit interactor all
debug output went to /dev/null instead of stderr (or stdout) if one
enabled debugging of the edit interactors with GPGMEPP_INTERACTOR_DEBUG
set to stderr (or stdout).

Details

Provenance
ikloeckerAuthored on May 5 2021, 6:52 PM
Parents
rMf0858e45b0be: qt: Extend SignKeyJob to create trust signatures
Branches
Unknown
Tags
Unknown