diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-04-18 17:17:30 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-04-25 01:30:58 +0200 |
commit | 03e5758c65716320b0de34882256edbbe7fe4542 (patch) | |
tree | 7b571071ccd3df0b572b9c687a8f06a2650f1aa2 /ldpd/ldpd.c | |
parent | ldpd: fix log level of log_warn() and log_warnx() (diff) | |
download | frr-03e5758c65716320b0de34882256edbbe7fe4542.tar.xz frr-03e5758c65716320b0de34882256edbbe7fe4542.zip |
ldpd: call openzlog() in the child processes as well
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/ldpd.c')
-rw-r--r-- | ldpd/ldpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c index b1204c733..47644d444 100644 --- a/ldpd/ldpd.c +++ b/ldpd/ldpd.c @@ -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, |