diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-04-19 21:59:50 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-04-26 15:36:33 +0200 |
commit | f2232fdf8a567ce4d5fc7da44214c092adb79746 (patch) | |
tree | 544f7fb3ca825e1d1686d64d4cd27455f8727693 /ldpd/ldpe.h | |
parent | ldpd: remove unnecessary checks if a signal was caught (diff) | |
download | frr-f2232fdf8a567ce4d5fc7da44214c092adb79746.tar.xz frr-f2232fdf8a567ce4d5fc7da44214c092adb79746.zip |
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>
Diffstat (limited to 'ldpd/ldpe.h')
-rw-r--r-- | ldpd/ldpe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldpd/ldpe.h b/ldpd/ldpe.h index 2c1ba46c6..d34ca4dc2 100644 --- a/ldpd/ldpe.h +++ b/ldpd/ldpe.h @@ -199,6 +199,7 @@ void ldpe(void); void ldpe_init(struct ldpd_init *); int ldpe_imsg_compose_parent(int, pid_t, void *, uint16_t); +void ldpe_imsg_compose_parent_sync(int, pid_t, void *, uint16_t); int ldpe_imsg_compose_lde(int, uint32_t, pid_t, void *, uint16_t); int ldpe_acl_check(char *, int, union ldpd_addr *, uint8_t); |