CtdlUserLogout() syslog who owned the session we killed
authorArt Cancro <ajc@uncensored.citadel.org>
Sun, 13 Mar 2011 07:30:59 +0000 (03:30 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 15:02:31 +0000 (15:02 +0000)
citadel/context.c
citadel/user_ops.c

index 2b1cce1b0d84a457157f55a3d88c590c496ae6f0..9801c23621335a5e20a92bc1ae5143e05341bc9f 100644 (file)
@@ -583,7 +583,7 @@ void context_cleanup(void)
                rem = ptr->next;
                --num_sessions;
 
-               syslog(LOG_DEBUG, "Purging session #%d %s\n", ptr->cs_pid, ptr->ServiceName);
+               syslog(LOG_DEBUG, "context_cleanup(): Purging session #%d %s\n", ptr->cs_pid, ptr->ServiceName);
                RemoveContext(ptr);
                free (ptr);
                ptr = rem;
@@ -618,7 +618,7 @@ void kill_session(int session_to_kill) {
  */
 void dead_session_purge(int force) {
        CitContext *ptr, *ptr2;         /* general-purpose utility pointer */
-       CitContext *rem = NULL; /* list of sessions to be destroyed */
+       CitContext *rem = NULL;         /* list of sessions to be destroyed */
        
        if (force == 0) {
                if ( (time(NULL) - last_purge) < 5 ) {
@@ -660,7 +660,7 @@ void dead_session_purge(int force) {
         * is allocated privately on this thread's stack.
         */
        while (rem != NULL) {
-               syslog(LOG_DEBUG, "Purging session %d\n", rem->cs_pid);
+               syslog(LOG_DEBUG, "dead_session_purge(): purging session %d\n", rem->cs_pid);
                RemoveContext(rem);
                ptr = rem;
                rem = rem->next;
index 96f773f7dc82ee091d1bd313204e294f0ffbfdbb..7eefb54eb8240359e8c70aef6d4b1c007db17f99 100644 (file)
@@ -777,6 +777,9 @@ void logged_in_response(void)
 void CtdlUserLogout(void)
 {
        CitContext *CCC = MyContext();
+
+       syslog(LOG_DEBUG, "CtdlUserLogout() logging out <%s>\n", CCC->curr_user);
+
        /*
         * If there is a download in progress, abort it.
         */