summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index ee52a98ad..6744bfe72 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2356,6 +2356,7 @@ static int vtysh_exit(struct vty *vty)
if (vty->node == CONFIG_NODE) {
/* resync in case one of the daemons is somewhere else */
vtysh_execute("end");
+ /* NOTE: a rather expensive thing to do, can we avoid it? */
vtysh_execute("configure terminal file-lock");
}
return CMD_SUCCESS;