]> git.proxmox.com Git - mirror_frr.git/commit - lib/zlog_targets.c
lib: mark some allocations as "active at exit"
authorDavid Lamparter <equinox@diac24.net>
Mon, 2 Dec 2019 15:20:00 +0000 (16:20 +0100)
committerDavid Lamparter <equinox@diac24.net>
Wed, 1 Apr 2020 04:53:26 +0000 (06:53 +0200)
commit767439c55858d65bf6f5776b7fcd36cc1132565c
treed6eb0daa9975f6ff20eca5b69955af23a7db97ad
parent0bdeb5e58d8fdf8b0f30461a388768112b0e080c
lib: mark some allocations as "active at exit"

In some cases we really don't want to clean up things even when exiting
(i.e. to keep the logging subsystem going.)  This adds a flag on MGROUPs
to indicate that.

[v2: add "(active at exit)" marker text to debug memstats-at-exit]
Signed-off-by: David Lamparter <equinox@diac24.net>
lib/memory.c
lib/memory.h
lib/zlog_targets.c