From: Pekka Riikonen Date: Thu, 16 Jan 2003 09:36:07 +0000 (+0000) Subject: Some more SIGUSR1 dumps X-Git-Tag: silc.client.0.9.11.1~4 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=db6ef49f88bf4f2515a22447944a27f1bcfb6001;p=silc.git Some more SIGUSR1 dumps --- 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;