Merge tag 'upstream/1.2.3'
[quagga-debian.git] / watchquagga / watchquagga.c
index 9bd7a5f2538b1df9d18ea10c8cca30d222efe4d8..130f9feb77f96963d4ce825faadf84f1e7cf86f6 100644 (file)
@@ -1386,14 +1386,9 @@ main(int argc, char **argv)
                  progname, QUAGGA_VERSION, buf, mode_str[gs.mode]);
     }
   }
-
-  {
-    struct thread thread;
-
-    while (thread_fetch (master, &thread))
-      thread_call (&thread);
-  }
-
+  
+  thread_main (master);
+  
   /* Not reached. */
   return 0;
 }