output the session ids when logging that we kill'em
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 22 Nov 2014 14:49:21 +0000 (15:49 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 22 Nov 2014 14:49:21 +0000 (15:49 +0100)
citadel/context.c

index 38e0d03f5eb130614105fc079f481106227d5f6a..81b597850b1dbfbe00396ea6119ba1014ed80e3e 100644 (file)
@@ -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++;