aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/g10.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/g10.c b/g10/g10.c
index ca9b44dac..9195d21a8 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -41,6 +41,7 @@
#include "ttyio.h"
#include "i18n.h"
#include "status.h"
+#include "g10defs.h"
#ifndef IS_G10MAINT
#define IS_G10 1
@@ -503,8 +504,8 @@ main( int argc, char **argv )
log_set_name("gpg");
secure_random_alloc(); /* put random number into secure memory */
disable_core_dumps();
- init_signals();
#endif
+ init_signals();
i18n_init();
opt.compress = -1; /* defaults to standard compress level */
/* fixme: set the next two to zero and decide where used */
@@ -571,7 +572,6 @@ main( int argc, char **argv )
/* Okay, we are now working under our real uid */
#endif
-
if( default_config )
configname = make_filename(opt.homedir, "options", NULL );
@@ -1232,6 +1232,8 @@ main( int argc, char **argv )
void
g10_exit( int rc )
{
+ if( opt.debug & DBG_MEMSTAT_VALUE )
+ m_print_stats("on exit");
if( opt.debug )
secmem_dump_stats();
secmem_term();