]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: call openzlog() in the child processes as well
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 18 Apr 2017 15:17:30 +0000 (12:17 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 24 Apr 2017 23:30:58 +0000 (20:30 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/ldpd.c

index b1204c7332cd2e07222745bfe267104c62d52fa3..47644d44490799f040cfb8cef8cb55a38b894d4e 100644 (file)
@@ -282,14 +282,14 @@ main(int argc, char *argv[])
                exit(1);
        }
 
+       openzlog(ldpd_di.progname, "LDP", 0,
+           LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
+
        if (lflag)
                lde(user, group, instance);
        else if (eflag)
                ldpe(user, group, ctl_sock_path);
 
-       openzlog(ldpd_di.progname, "LDP", 0,
-           LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
-
        if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pipe_parent2ldpe) == -1)
                fatal("socketpair");
        if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC,