housekeeping.c: call kill_session() with session_to_kill, not ccptr->cs_pid
authorArt Cancro <ajc@citadel.org>
Mon, 21 Dec 1998 12:55:28 +0000 (12:55 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 21 Dec 1998 12:55:28 +0000 (12:55 +0000)
(was crashing the server)

citadel/ChangeLog
citadel/housekeeping.c

index 4b129e8660f9fa6f2effff0853cf09ffa909245b..21d0ee325bda1eb3f947192371079512c780166e 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 21 07:54:20 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+       * housekeeping.c: call kill_session() with session_to_kill,
+         not ccptr->cs_pid (was crashing the server)
+
 Sat Dec 19 13:57:48 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Added "-i" flag to netproc to make it skip the export phase.
          Updated other programs to call netproc in this way when appropriate.
index 8ede483c6497f60dabba23c9da7e68f4329aaccf..84f4bea9c01f487cb34b3c8969072a56216c4230 100644 (file)
@@ -49,8 +49,8 @@ void terminate_idle_sessions(void) {
                lprintf(9, "...done scanning.\n");
                if (session_to_kill > 0) {
                        lprintf(3, "Session %d timed out.  Terminating it...\n",
-                               ccptr->cs_pid);
-                       kill_session(ccptr->cs_pid);
+                               session_to_kill);
+                       kill_session(session_to_kill);
                        lprintf(9, "...done terminating it.\n");
                        }
                } while(session_to_kill > 0);