g10: Block signals in g10_exit.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 4 Jun 2019 04:39:46 +0000 (13:39 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 4 Jun 2019 04:39:46 +0000 (13:39 +0900)
commit537fbe13af6a70e105982c4b69c1bcc3908ffb08
tree0f66ef746cdf06f62a5b0b7f256a2da53c31dda9
parent0076bef2026a87c4c0e05bad7d322638b1de3f37
g10: Block signals in g10_exit.

* g10/gpg.c (g10_exit): Block all signals before calling
emergency_cleanup.

--

There is a race condition here which results crash of the process.
When a signal is delivered in emergency_cleanup, it is called again.
This change fixes the problem.

GnuPG-bug-id: 2747
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/gpg.c