From db6ef49f88bf4f2515a22447944a27f1bcfb6001 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 16 Jan 2003 09:36:07 +0000 Subject: [PATCH] Some more SIGUSR1 dumps --- apps/silcd/silcd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/silcd/silcd.c b/apps/silcd/silcd.c index 33a5043c..7327758f 100644 --- a/apps/silcd/silcd.c +++ b/apps/silcd/silcd.c @@ -306,6 +306,20 @@ SILC_TASK_CALLBACK(dump_stats) #undef STAT_OUTPUT #ifdef SILC_DEBUG + /* Dump internal flags */ + fprintf(fdd, "\nDumping internal flags\n"); + fprintf(fdd, " server_type : %d\n", silcd->server_type); + fprintf(fdd, " standalone : %d\n", silcd->standalone); + fprintf(fdd, " listenning : %d\n", silcd->listenning); + fprintf(fdd, " background : %d\n", silcd->background); + fprintf(fdd, " backup_router : %d\n", silcd->backup_router); + fprintf(fdd, " backup_primary : %d\n", silcd->backup_primary); + fprintf(fdd, " backup_noswitch : %d\n", silcd->backup_noswitch); + fprintf(fdd, " wait_backup : %d\n", silcd->wait_backup); + if (silcd->router) + fprintf(fdd, " primary router : %s\n", + silcd->router->server_name ? silcd->router->server_name : ""); + /* Dump lists */ { SilcIDCacheList list = NULL; -- 2.43.0