Commit 7ad30691 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

logout_client() is static.

Added logout_all_clients().
parent 33053672
......@@ -57,7 +57,7 @@ BUGDECL;
void
static void
logout_client(Connection *cp)
{
Connection *real_active_connection;
......@@ -111,6 +111,32 @@ logout_client(Connection *cp)
kill_client(cp); /* Free the Connection */
}
/*
* This function is part of the shutdown tidy-up sequence.
*/
void
logout_all_clients(void)
{
Session_no sess = 0;
Connection *conn;
while ( (sess = traverse_connections (sess)) != 0)
{
conn = get_conn_by_number (sess);
if ( conn == NULL )
restart_kom("logout_all_clients(): cant get session %d.\n",
sess);
else
logout_client (conn);
}
if ( traverse_connections (0) != 0)
restart_kom("logout_all_clients(): traverse_connections(0) == %d.\n",
traverse_connections(0));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment