From: Renato Westphal Date: Tue, 18 Apr 2017 15:17:30 +0000 (-0300) Subject: ldpd: call openzlog() in the child processes as well X-Git-Tag: reindent-master-before~214^2~13 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=03e5758c65716320b0de34882256edbbe7fe4542;p=matthieu%2Ffrr.git ldpd: call openzlog() in the child processes as well Signed-off-by: Renato Westphal --- diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c index b1204c7332..47644d4449 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,