From: Mark Stapp Date: Tue, 2 Jul 2019 18:05:18 +0000 (-0400) Subject: lib: add process pids to 'show modules' X-Git-Tag: base_7.2~165^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bfae97a6fa01f65266f6bbc371d5ab7553111072;p=mirror%2Ffrr.git lib: add process pids to 'show modules' Add the process pids to the output produced by 'show modules'. At least in a development setting, where there may be multiple instances of frr running, it can be handy to be able to id the exact pids, for debugging e.g. Signed-off-by: Mark Stapp --- diff --git a/lib/memory_vty.c b/lib/memory_vty.c index 5fd9c3b900..1adc0d7b74 100644 --- a/lib/memory_vty.c +++ b/lib/memory_vty.c @@ -171,6 +171,9 @@ DEFUN (show_modules, } plug = plug->next; } + + vty_out(vty, "pid: %u\n", (uint32_t)(getpid())); + return CMD_SUCCESS; }