summaryrefslogtreecommitdiff
path: root/zebra/main.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-23 18:35:35 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-05-29 19:06:16 +0000
commit21ccc0cf24f80b7b75815dba3da308f6bae70492 (patch)
tree6bf49b5128524f5d7e1d5a39be34d44d70a5a211 /zebra/main.c
parentf2efe6a3ebfd77524d47b592152199c5da922c13 (diff)
zebra: refactor zserv names, consolidate events
* Add centralized thread scheduling dispatchers for client threads and the main thread * Rename everything in zserv.c to stop using a combination of: - zebra_server_* - zebra_* - zserv_* Everything in zserv.c now begins with zserv_*. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 9bcbaa3c20..c5246999fa 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -379,10 +379,11 @@ int main(int argc, char **argv)
/* Needed for BSD routing socket. */
pid = getpid();
+ /* Intialize pthread library */
frr_pthread_init();
- /* This must be done only after locking pidfile (bug #403). */
- zebra_zserv_socket_init(zserv_path);
+ /* Start Zebra API server */
+ zserv_start(zserv_path);
/* Init label manager */
label_manager_init(lblmgr_path);