summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 16:59:27 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit1e404099311b36be18e180a1ae7a49a7e0917d7e (patch)
treeef8ba3ee421355d480a86fd557a21df47502494e /ldpd
parenteigrpd: Convert to use LIB_ERR_XXX for zlog_err (diff)
downloadfrr-1e404099311b36be18e180a1ae7a49a7e0917d7e.tar.xz
frr-1e404099311b36be18e180a1ae7a49a7e0917d7e.zip
ldpd: Convert to using LIB_ERR_XXX and zlog_ferr
convert ldpd over to using zlog_ferr and LIB_ERR_XXX where appropriate. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/ldpd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c
index b51ff82ce..434d0b35e 100644
--- a/ldpd/ldpd.c
+++ b/ldpd/ldpd.c
@@ -42,6 +42,7 @@
#include "filter.h"
#include "qobj.h"
#include "libfrr.h"
+#include "lib_errors.h"
static void ldpd_shutdown(void);
static pid_t start_child(enum ldpd_process, char *, int, int);
@@ -483,8 +484,9 @@ start_child(enum ldpd_process p, char *argv0, int fd_async, int fd_sync)
nullfd = open("/dev/null", O_RDONLY | O_NOCTTY);
if (nullfd == -1) {
- zlog_err("%s: failed to open /dev/null: %s", __func__,
- safe_strerror(errno));
+ zlog_ferr(LIB_ERR_SYSTEM_CALL,
+ "%s: failed to open /dev/null: %s", __func__,
+ safe_strerror(errno));
} else {
dup2(nullfd, 0);
dup2(nullfd, 1);