diff options
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r-- | bgpd/bgp_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 9d14683c..7ab403bc 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -404,9 +404,10 @@ main (int argc, char **argv) /* Initializations. */ srand (time (NULL)); signal_init (master, Q_SIGC(bgp_signals), bgp_signals); - zprivs_init (&bgpd_privs); + zprivs_init_r (&bgpd_privs); cmd_init (1); - vty_init (master); + vty_init_r(); +/* vty_init (master); */ memory_init (); /* BGP related initialization. */ @@ -442,6 +443,9 @@ main (int argc, char **argv) (bm->address ? bm->address : "<all>"), bm->port); + /* create CLI thread */ + vty_exec_r(); + /* Start finite state machine, here we go! */ while (thread_fetch (master, &thread)) thread_call (&thread); |