From e2fa85ce8859f837c1280c377ba537ff6030d519 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 22 Nov 2014 15:49:21 +0100 Subject: [PATCH] output the session ids when logging that we kill'em --- citadel/context.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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++; -- 2.30.2