]> git.puffer.fish Git - matthieu/frr.git/commitdiff
babeld: fix bug concerning pidfile.
authorMatthieu Boutier <boutier@pps.jussieu.fr>
Sun, 8 Jan 2012 16:07:10 +0000 (17:07 +0100)
committerPaul Jakma <paul@quagga.net>
Sun, 25 Mar 2012 16:06:52 +0000 (17:06 +0100)
babeld/babel_main.c

index 6065b7bce91a2146e18735b669144cd4b83f64b9..b4d60886e4b2049a65b1805ca302011f909ca6c2 100644 (file)
@@ -87,7 +87,7 @@ int link_detect = 0;
 int wireless_hello_interval = -1;
 int wired_hello_interval = -1;
 int idle_hello_interval = -1;
-char *pidfile = "/var/run/babeld.pid";
+static char *pidfile = PATH_BABELD_PID;
 
 const unsigned char zeroes[16] = {0};
 const unsigned char ones[16] =
@@ -162,7 +162,6 @@ babel_init(int argc, char **argv)
     int rc, opt;
     int do_daemonise = 0;
     char *progname = NULL;
-    char *pidfile = PATH_BABELD_PID;
 
     /* Set umask before anything for security */
     umask (0027);