agent: Improve --debug-pinentry diagnostics
* agent/call-pinentry.c (atfork_cb): Factor code out to ... (atfork_core): new.
We convey certain envvars directly via the environment to Pinentry and
thus they don't show up in the Assuan logging. Because we better
don't call a logging function in an atfork handle, this patch splits
the code up and uses the same code to display what was done in at fork
after the connection has been established.
(cherry picked from commit c8783b3a204b371d44b8953429652101cf2e4d1b)
- Signed-off-by: Werner Koch <firstname.lastname@example.org>