summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-04-15 15:13:27 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-04-15 15:13:27 +0200
commit8f6899f25b27f7bf1ad562d8f991d9407fee266e (patch)
tree7da0959b9e5bae52f8ced2ad299491fbd407af35 /vtysh
parentlib, bgpd: Refactor vrf handling through zclient (diff)
downloadfrr-8f6899f25b27f7bf1ad562d8f991d9407fee266e.tar.xz
frr-8f6899f25b27f7bf1ad562d8f991d9407fee266e.zip
vtysh -f needs to flock the file
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-10428
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 3c06eec7e..1d40ab4cc 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -422,7 +422,9 @@ main (int argc, char **argv, char **env)
if (inputfile)
{
+ vtysh_flock_config (inputfile);
ret = vtysh_read_config(inputfile);
+ vtysh_unflock_config ();
exit(ret);
}