]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh -f needs to flock the file
authorDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 15 Apr 2016 13:13:27 +0000 (13:13 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 15 Apr 2016 13:13:27 +0000 (13:13 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-10428

vtysh/vtysh_main.c

index 3c06eec7e9a5fa65ad5e0f3c349ab0153fad3119..1d40ab4cca6126605c3029e3a98d14f2584a1414 100644 (file)
@@ -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);
     }