From 21ccc0cf24f80b7b75815dba3da308f6bae70492 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 23 Apr 2018 18:35:35 -0400 Subject: 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 --- zebra/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zebra/main.c') 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); -- cgit v1.2.3