diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-09 14:32:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-09 14:32:44 -0400 |
| commit | f790234f2ff2e1d6c7a230e5c1d9dac280a12d44 (patch) | |
| tree | b4815bc05f3bc7f54ebf39c773af30cce3a5d19a /tests/lib/cli/common_cli.c | |
| parent | 75d837ac60b3838e1be02156a428e183197d7ad0 (diff) | |
| parent | 999f153ecea7eccb6fd541f7b38d88b7eb8dfd40 (diff) | |
Merge pull request #892 from opensourcerouting/watchfrr-simplify
simplify watchfrr, add --terminal, improve startup logging
Diffstat (limited to 'tests/lib/cli/common_cli.c')
| -rw-r--r-- | tests/lib/cli/common_cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index b6df6d3b8d..77f1610fe2 100644 --- a/tests/lib/cli/common_cli.c +++ b/tests/lib/cli/common_cli.c @@ -45,7 +45,7 @@ int dump_args(struct vty *vty, const char *descr, int argc, return CMD_SUCCESS; } -static void vty_do_exit(void) +static void vty_do_exit(int isexit) { printf("\nend.\n"); cmd_terminate(); @@ -54,7 +54,8 @@ static void vty_do_exit(void) closezlog(); log_memstats_stderr("testcli"); - exit(0); + if (!isexit) + exit(0); } /* main routine. */ |
