]> git.proxmox.com Git - mirror_frr.git/commit - lib/vty.h
lib/vty: add vty_stdio at-close hook
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 12 May 2015 19:56:18 +0000 (21:56 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 8 Jun 2016 19:09:53 +0000 (15:09 -0400)
commitdbf78092dae5717334dbb0f20fa540a47fbebb70
tree22936f002b3e42682c494cbd4ba82d99e75b83c9
parentb510a06e1ff6bf592a4c8aae20281eceea16acc9
lib/vty: add vty_stdio at-close hook

This is intended to be used for either "exit on close", "fork on close"
or "reopen vty on close" functionality for the stdio vty.  Which of
these options to take depends on the context, the use case right now is
test programs exiting on EOF.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 464ccf36b4aa1b942cad413ea30267b4bf9e6315)
lib/vty.c
lib/vty.h