mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
ldpd: call openzlog() in the child processes as well
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
a9916d2bf3
commit
03e5758c65
@ -282,14 +282,14 @@ main(int argc, char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openzlog(ldpd_di.progname, "LDP", 0,
|
||||||
|
LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
|
||||||
|
|
||||||
if (lflag)
|
if (lflag)
|
||||||
lde(user, group, instance);
|
lde(user, group, instance);
|
||||||
else if (eflag)
|
else if (eflag)
|
||||||
ldpe(user, group, ctl_sock_path);
|
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)
|
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pipe_parent2ldpe) == -1)
|
||||||
fatal("socketpair");
|
fatal("socketpair");
|
||||||
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC,
|
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC,
|
||||||
|
Loading…
Reference in New Issue
Block a user