From: Art Cancro Date: Mon, 21 Dec 1998 12:55:28 +0000 (+0000) Subject: housekeeping.c: call kill_session() with session_to_kill, not ccptr->cs_pid X-Git-Tag: v7.86~7995 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=12c90f10ca1695260008304a64bd6c32729a9765;p=citadel.git housekeeping.c: call kill_session() with session_to_kill, not ccptr->cs_pid (was crashing the server) --- 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);