From 03e5758c65716320b0de34882256edbbe7fe4542 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Tue, 18 Apr 2017 12:17:30 -0300 Subject: ldpd: call openzlog() in the child processes as well Signed-off-by: Renato Westphal --- ldpd/ldpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ldpd/ldpd.c') 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, -- cgit v1.2.3