diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-04-15 13:13:27 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-04-15 13:13:27 +0000 |
| commit | 8f6899f25b27f7bf1ad562d8f991d9407fee266e (patch) | |
| tree | 7da0959b9e5bae52f8ced2ad299491fbd407af35 | |
| parent | 2fcc254eed8931c1fb6041abc824f46efb4a65cc (diff) | |
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
| -rw-r--r-- | vtysh/vtysh_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |
