diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-23 16:18:49 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-24 00:18:50 +0200 |
| commit | 9eed278b163d2175ee714869085a54f2c3726cca (patch) | |
| tree | 057333fac7216df3a989f1b9cc589ee40d6b1762 /tests/lib/cli/common_cli.c | |
| parent | 9d1c2659293a757a672bf0aa0d2f5ca20a2b28e5 (diff) | |
lib: centralized memstats-at-exit
adds a new all-daemon "debug memstats-at-exit" command. Also saves
memstats to a file in /tmp, useful if a long-running daemon is having
weird issues (e.g. in a user install).
Fixes: #437
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests/lib/cli/common_cli.c')
| -rw-r--r-- | tests/lib/cli/common_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index 77f1610fe2..0fd2f80a39 100644 --- a/tests/lib/cli/common_cli.c +++ b/tests/lib/cli/common_cli.c @@ -53,7 +53,7 @@ static void vty_do_exit(int isexit) thread_master_free(master); closezlog(); - log_memstats_stderr("testcli"); + log_memstats(stderr, "testcli"); if (!isexit) exit(0); } |
