mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +00:00
Merge pull request #2548 from pacovn/Coverity_1453456_Unchecked_return_value_from_library
lib: check return value (Coverity 1453456)
This commit is contained in:
commit
347e3c3d5f
@ -846,7 +846,9 @@ static int frr_daemon_ctl(struct thread *t)
|
|||||||
switch (buf[0]) {
|
switch (buf[0]) {
|
||||||
case 'S': /* SIGTSTP */
|
case 'S': /* SIGTSTP */
|
||||||
vty_stdio_suspend();
|
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;
|
break;
|
||||||
case 'R': /* SIGTCNT [implicit] */
|
case 'R': /* SIGTCNT [implicit] */
|
||||||
vty_stdio_resume();
|
vty_stdio_resume();
|
||||||
|
Loading…
Reference in New Issue
Block a user