From: Daniel Walton Date: Fri, 15 Apr 2016 13:13:27 +0000 (+0000) Subject: vtysh -f needs to flock the file X-Git-Tag: frr-2.0-rc1~965 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8f6899f25b27f7bf1ad562d8f991d9407fee266e;p=matthieu%2Ffrr.git vtysh -f needs to flock the file Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Ticket: CM-10428 --- diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 3c06eec7e9..1d40ab4cca 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); }