diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-14 05:49:34 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-05-29 21:06:16 +0200 |
commit | 329e35dab8e11298b3d93ae53335063d21492972 (patch) | |
tree | 4e9995521f3b233b0ea256ed51f5ee0678aa9f36 /zebra/main.c | |
parent | Merge pull request #2142 from pguibert6WIND/fs_zebra_complement (diff) | |
download | frr-329e35dab8e11298b3d93ae53335063d21492972.tar.xz frr-329e35dab8e11298b3d93ae53335063d21492972.zip |
zebra: multithreaded zserv
Handle each zclient in its own thread.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/main.c')
-rw-r--r-- | zebra/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c index 9c721f0a7..9bcbaa3c2 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -37,6 +37,7 @@ #include "logicalrouter.h" #include "libfrr.h" #include "routemap.h" +#include "frr_pthread.h" #include "zebra/rib.h" #include "zebra/zserv.h" @@ -378,6 +379,8 @@ int main(int argc, char **argv) /* Needed for BSD routing socket. */ pid = getpid(); + frr_pthread_init(); + /* This must be done only after locking pidfile (bug #403). */ zebra_zserv_socket_init(zserv_path); |