]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/main.c
*: add frr_run()
[mirror_frr.git] / zebra / main.c
index 3aa40fa92c7a997c087ced3c97ea78db41c0ba90..7177fe329ff423d53b121e4460304a5d26e1524a 100644 (file)
@@ -219,7 +219,6 @@ int
 main (int argc, char **argv)
 {
   // int batch_mode = 0;
-  struct thread thread;
   char *zserv_path = NULL;
   char *fpm_format = NULL;
 
@@ -360,13 +359,7 @@ main (int argc, char **argv)
   /* This must be done only after locking pidfile (bug #403). */
   zebra_zserv_socket_init (zserv_path);
 
-  frr_vty_serv ();
-
-  /* Print banner. */
-  zlog_notice ("Zebra %s starting: vty@%d", FRR_VERSION, zebra_di.vty_port);
-
-  while (thread_fetch (zebrad.master, &thread))
-    thread_call (&thread);
+  frr_run (zebrad.master);
 
   /* Not reached... */
   return 0;