diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-06-27 10:47:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-27 10:47:45 -0500 |
| commit | 43d372ece453a1eb1aafb4ad045d8d5149924690 (patch) | |
| tree | 4b53ce504d57ae5ac66d3f5474d7b19e7bd038cf | |
| parent | 42fa8b00deb1fdc87a57bb82b739287688e5d383 (diff) | |
| parent | e82a17c61b49e4bfa462bceac08ed7ae2a54e254 (diff) | |
Merge pull request #748 from qlyoung/fix-vtysh-exit
lib: actually exit when asked to 'do' so
| -rw-r--r-- | lib/vty.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2212,7 +2212,10 @@ vtysh_read (struct thread *thread) } } - vty_event (VTYSH_READ, sock, vty); + if (vty->status == VTY_CLOSE) + vty_close (vty); + else + vty_event (VTYSH_READ, sock, vty); return 0; } |
