diff options
author | David Lamparter <equinox@diac24.net> | 2013-05-30 16:31:49 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-08 21:08:05 +0200 |
commit | c5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377 (patch) | |
tree | 1a44f6621bf0f9c5015494d5d8ab244df114d43d /lib/vty.h | |
parent | ospfd: Remove another odd flooding hack in opaque LSA code (diff) | |
download | frr-c5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377.tar.xz frr-c5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377.zip |
lib/vty: add separate output fd support to VTYs
to be used with stdin/stdout terminals, this adds support for writing to
a different FD than we're reading from. Also fixes error messages from
config load being written to stdin.
[v2: fixed config write]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 4715a53b4d390e72a06c864a6a505971841e3dc9)
Diffstat (limited to 'lib/vty.h')
-rw-r--r-- | lib/vty.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -34,6 +34,9 @@ struct vty /* File descripter of this vty. */ int fd; + /* output FD, to support stdin/stdout combination */ + int wfd; + /* Is this vty connect to file or not */ enum {VTY_TERM, VTY_FILE, VTY_SHELL, VTY_SHELL_SERV} type; |