]> git.proxmox.com Git - mirror_frr.git/commit - ldpd/lde.h
ldpd: use synchronous channels for sending log messages
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 19 Apr 2017 19:59:50 +0000 (16:59 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 26 Apr 2017 13:36:33 +0000 (10:36 -0300)
commitf2232fdf8a567ce4d5fc7da44214c092adb79746
tree544f7fb3ca825e1d1686d64d4cd27455f8727693
parentd1fcf957d131bb4c5b04144ee660207a3165ee07
ldpd: use synchronous channels for sending log messages

This is necessary to guarantee that all log messages sent from the child
processes are received in the parent process right away.

Without this patch, when a child process calls fatal() or fatalx(),
the log messages don't make it to the parent because the child doesn't
have a chance to flush its buffers before exiting.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde.c
ldpd/lde.h
ldpd/ldpe.c
ldpd/ldpe.h
ldpd/log.c