]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: add process pids to 'show modules'
authorMark Stapp <mjs@voltanet.io>
Tue, 2 Jul 2019 18:05:18 +0000 (14:05 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 2 Jul 2019 19:15:13 +0000 (15:15 -0400)
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 <mjs@voltanet.io>
lib/memory_vty.c

index 5fd9c3b900437c13a5feb6c2f792d7aa96a08c33..1adc0d7b748f3c64772af9e115f5dab1e12f6e28 100644 (file)
@@ -171,6 +171,9 @@ DEFUN (show_modules,
                }
                plug = plug->next;
        }
+
+       vty_out(vty, "pid: %u\n", (uint32_t)(getpid()));
+
        return CMD_SUCCESS;
 }