summaryrefslogtreecommitdiffstats
path: root/lib/command.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2010-01-22 18:04:18 +0000
committerpaulo <paul@bayleaf.org.uk>2010-01-22 18:04:18 +0000
commiteeda1184fa60c5077c2d404d0a8415d11e836ccd (patch)
tree2fbf5caf7362cfb47d2a84cdacac0283ec77aa72 /lib/command.c
parent27d6ee80efd93c2f82de06787483630756164605 (diff)
downloadquagga-eeda1184fa60c5077c2d404d0a8415d11e836ccd.tar.bz2
quagga-eeda1184fa60c5077c2d404d0a8415d11e836ccd.tar.xz
Fix "write file" command so reports "threaded". Working on Shutdown and
HUP. Shutdown needs mechanism to know when bgp_engine has closed everything. HUP don't understand how it is supposed to cope with added/ deleted/retained peers and get them going again.
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 59cbbe52..2c9ca64a 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -536,6 +536,9 @@ zencrypt (const char *passwd)
static int
config_write_host (struct vty *vty)
{
+ if (qpthreads_enabled)
+ vty_out (vty, "threaded%s", VTY_NEWLINE);
+
if (host.name)
vty_out (vty, "hostname %s%s", host.name, VTY_NEWLINE);