summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2018-06-25 17:30:31 -0400
committerGitHub <noreply@github.com>2018-06-25 17:30:31 -0400
commit347e3c3d5fbd3f935935924fa18f8689f4b968f0 (patch)
tree779295b12c12e3db4260c58acfa8e7814faa869e /lib/libfrr.c
parentc356b7e68f54949d27989a6c68f91c20ee49db47 (diff)
parente339d7c04dd6ad2d6c9620ad15f185f584197be8 (diff)
Merge pull request #2548 from pacovn/Coverity_1453456_Unchecked_return_value_from_library
lib: check return value (Coverity 1453456)
Diffstat (limited to 'lib/libfrr.c')
-rw-r--r--lib/libfrr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 505bea9b18..9ea5e985cd 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -846,7 +846,9 @@ static int frr_daemon_ctl(struct thread *t)
switch (buf[0]) {
case 'S': /* SIGTSTP */
vty_stdio_suspend();
- send(daemon_ctl_sock, "s", 1, 0);
+ if (send(daemon_ctl_sock, "s", 1, 0) < 0)
+ zlog_err("%s send(\"s\") error (SIGTSTP propagation)",
+ (di && di->name ? di->name : ""));
break;
case 'R': /* SIGTCNT [implicit] */
vty_stdio_resume();