From: Wilfried Goesgens Date: Sat, 22 Nov 2014 14:49:21 +0000 (+0100) Subject: output the session ids when logging that we kill'em X-Git-Tag: v9.01~82 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=e2fa85ce8859f837c1280c377ba537ff6030d519;hp=aec55667296bcb38139495f328aff9d0d292a0d3 output the session ids when logging that we kill'em --- diff --git a/citadel/context.c b/citadel/context.c index 38e0d03f5..81b597850 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -276,7 +276,12 @@ void terminate_all_sessions(void) for (ccptr = ContextList; ccptr != NULL; ccptr = ccptr->next) { if (ccptr->client_socket != -1) { - CON_syslog(LOG_INFO, "terminate_all_sessions() is murdering %s", ccptr->curr_user); + if (ccptr->IO != NULL) { + CON_syslog(LOG_INFO, "terminate_all_sessions() is murdering %s IO[%ld]CC[%d]", ccptr->curr_user, ccptr->IO->ID, ccptr->cs_pid); + } + else { + CON_syslog(LOG_INFO, "terminate_all_sessions() is murdering %s CC[%d]", ccptr->curr_user, ccptr->cs_pid); + } close(ccptr->client_socket); ccptr->client_socket = -1; killed++;