diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-14 15:13:18 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | 481bc15ffcebcc7d0395a3ffa8ce70249e221d5b (patch) | |
tree | 9c11638144a147251871840b9fb94429433cfe32 /lib/sigevent.c | |
parent | lib: When logging commands do not use zlog_err (diff) | |
download | frr-481bc15ffcebcc7d0395a3ffa8ce70249e221d5b.tar.xz frr-481bc15ffcebcc7d0395a3ffa8ce70249e221d5b.zip |
lib: Add LIB_ERR_SYSTEM_CALL and convert VRF_SOCKET to SOCKET
Add a new error code LIB_ERR_SYSTEM_CALL to the ferr subsystem.
Additionally convert LIB_ERR_VRF_SOCKET to a more generic
LIB_ERR_SOCKET.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/sigevent.c')
-rw-r--r-- | lib/sigevent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sigevent.c b/lib/sigevent.c index 59eaa8037..c6a8fcbd1 100644 --- a/lib/sigevent.c +++ b/lib/sigevent.c @@ -22,6 +22,7 @@ #include <sigevent.h> #include <log.h> #include <memory.h> +#include <lib_errors.h> #ifdef SA_SIGINFO #ifdef HAVE_UCONTEXT_H @@ -83,7 +84,8 @@ int quagga_sigevent_process(void) sigdelset(&newmask, SIGKILL); if ((sigprocmask(SIG_BLOCK, &newmask, &oldmask)) < 0) { - zlog_err("quagga_signal_timer: couldnt block signals!"); + zlog_ferr(LIB_ERR_SYSTEM_CALL, + "quagga_signal_timer: couldnt block signals!"); return -1; } #endif /* SIGEVENT_BLOCK_SIGNALS */ |