diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-14 09:13:18 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 |
| commit | 481bc15ffcebcc7d0395a3ffa8ce70249e221d5b (patch) | |
| tree | 9c11638144a147251871840b9fb94429433cfe32 /lib/sigevent.c | |
| parent | 3ec8b5b8980bb0267f32dfc2508c457db55d5156 (diff) | |
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 59eaa80370..c6a8fcbd12 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 */ |
