From 12c90f10ca1695260008304a64bd6c32729a9765 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 21 Dec 1998 12:55:28 +0000 Subject: [PATCH] housekeeping.c: call kill_session() with session_to_kill, not ccptr->cs_pid (was crashing the server) --- citadel/ChangeLog | 4 ++++ citadel/housekeeping.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 4b129e866..21d0ee325 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 21 07:54:20 EST 1998 Art Cancro + * 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 * Added "-i" flag to netproc to make it skip the export phase. Updated other programs to call netproc in this way when appropriate. diff --git a/citadel/housekeeping.c b/citadel/housekeeping.c index 8ede483c6..84f4bea9c 100644 --- a/citadel/housekeeping.c +++ b/citadel/housekeeping.c @@ -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); -- 2.30.2