Commit 4a33d8a4 authored by Per Cederqvist's avatar Per Cederqvist

Fixed a memory leak during shutdown. Ignore clients that are being

killed more efficiently.
parent fc5b9df2
2003-08-01 Per Cederqvist <ceder@ceder.dyndns.org>
Fixed a memory leak during shutdown. Ignore clients that are
being killed more efficiently.
* src/server/connections.h (Connection): New field: kill_pending.
* src/server/internal-connections.c (init_connection): Initialize
kill_pending.
(new_client): Ditto.
* src/server/connections.c (add_to_kill_list): Check and update
kill_pending.
(check_kill_flg): Ditto.
(read_from_connection): Ignore connections with a pending kill.
(toploop): Call check_kill_flg() during shutdown if any kill is
pending, so that the kill list is freed.
Test suite fixes.
* src/server/testsuite/lyskomd.0/37.exp: Handle "Stale timeout".
* src/server/testsuite/lyskomd.0/38.exp: Use --write-only without
......
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