Merge pull request #2548 from pacovn/Coverity_1453456_Unchecked_return_value_from_library

lib: check return value (Coverity 1453456)
This commit is contained in:
Jafar Al-Gharaibeh 2018-06-25 17:30:31 -04:00 committed by GitHub
commit 347e3c3d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();