]> git.puffer.fish Git - mirror/frr.git/commitdiff
+ sayonara old_pid!
authorDenis Ovsienko <linux@pilot.org.ua>
Fri, 14 Sep 2007 14:56:28 +0000 (14:56 +0000)
committerDenis Ovsienko <linux@pilot.org.ua>
Fri, 14 Sep 2007 14:56:28 +0000 (14:56 +0000)
zebra/ChangeLog
zebra/kernel_socket.c
zebra/main.c
zebra/test_main.c
zebra/zserv.h

index 3d5dfd47290a33cb8f1584ef4cd927432e82841d..2969439d6b9e1600a82b50a5bebc180bbdb744cc 100644 (file)
@@ -7,6 +7,11 @@
        * kernel_socket.[ch]: We don't need rtm_type_str_max any more.
        * main.c: (main) Don't call rib_sweep_route() before the
          pidfile is acquired, this fixes bug #402.
+       * zserv.h: Dropped old_pid, since it's useless now. This
+         fixes bug #381.
+       * main.c: (main) Idem.
+       * test_main.c: (main) Idem.
+       * kernel_socket.c: (rtm_read) Idem.
 
 2007-09-12 Denis Ovsienko
 
index df2b5d809efa5004b179d2c947ee41aa0eff1411..cb23bf9fbe1640bd4476ead20cbab5d22788b351 100644 (file)
@@ -799,8 +799,7 @@ rtm_read (struct rt_msghdr *rtm)
        * At the same time, ignore unconfirmed messages, they should be tracked
        * by rtm_write() and kernel_rtm_ipv4().
        */
-      if (rtm->rtm_type != RTM_GET
-          && (rtm->rtm_pid == pid || rtm->rtm_pid == old_pid))
+      if (rtm->rtm_type != RTM_GET && rtm->rtm_pid == pid)
       {
         char buf[INET_ADDRSTRLEN], gate_buf[INET_ADDRSTRLEN];
         int ret;
index 2f9665237ca7d6d4485d7020db93575c6274b932..6019260fef66212b249b70b9dca84a7256ceecab 100644 (file)
@@ -47,7 +47,6 @@ struct zebra_t zebrad =
 };
 
 /* process id. */
-pid_t old_pid;
 pid_t pid;
 
 /* Pacify zclient.o in libzebra, which expects this variable. */
@@ -366,9 +365,6 @@ main (int argc, char **argv)
   if (batch_mode)
     exit (0);
 
-  /* Needed for BSD routing socket. */
-  old_pid = getpid ();
-
   /* Daemonize. */
   if (daemon_mode)
     daemon (0, 0);
index 59cec46276275c25844e3ce018953559085e060d..46f73bbe17e9fab04fab645d62a1ee563050a0fc 100644 (file)
@@ -43,7 +43,6 @@ struct zebra_t zebrad =
 };
 
 /* process id. */
-pid_t old_pid;
 pid_t pid;
 
 /* zebra_rib's workqueue hold time. Private export for use by test code only */
@@ -313,9 +312,6 @@ main (int argc, char **argv)
   if (batch_mode)
     exit (0);
 
-  /* Needed for BSD routing socket. */
-  old_pid = getpid ();
-
   /* Daemonize. */
   if (daemon_mode)
     daemon (0, 0);
index 68c26f234d5782de4529564995c16707f889f362..5e2237764088c6294561f5c0e52a65b43baae60a 100644 (file)
@@ -107,6 +107,5 @@ extern int zsend_route_multipath (int, struct zserv *, struct prefix *,
 extern int zsend_router_id_update(struct zserv *, struct prefix *);
 
 extern pid_t pid;
-extern pid_t old_pid;
 
 #endif /* _ZEBRA_ZEBRA_H */