Home GnuPG

Fix possible lockup in an atexit handler

Description

Fix possible lockup in an atexit handler

* src/estream.c (_gpgrt_fflush): Add arg in_atexit and skip the flush in
  this mode if the lock can not be taken.  Change all callers.

The problem should up with gpgsm encryption on the standard mode and a
no public key error. In this case the process got stuck in the atexit
handler after a FAILURE gpgsm-exit status line to stderr. It is
better not to have a hanging process than having flushed everything.

Details

Provenance
wernerAuthored on Thu, Apr 30, 1:38 PM
Parents
rEf7ded3ce666c: Fix possible stack overflow in es_printf for %.100f format.
Branches
Unknown
Tags
Unknown
References
HEAD -> master