mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 02:06:12 +00:00
Merge pull request #3060 from pacovn/Coverity_1399196_Unchecked_return_value
tools: return check (Coverity 1399196)
This commit is contained in:
commit
a05cee9a1a
@ -1030,7 +1030,9 @@ int main(int argc, char **argv)
|
||||
/* change tty */
|
||||
fd = open("/dev/tty", O_RDWR);
|
||||
if (fd >= 0) {
|
||||
ioctl(fd, TIOCNOTTY, 0);
|
||||
if (ioctl(fd, TIOCNOTTY, 0) < 0)
|
||||
printf("ioctl TIOCNOTTY failed: %s\n",
|
||||
strerror(errno));
|
||||
close(fd);
|
||||
}
|
||||
chdir("/");
|
||||
|
Loading…
Reference in New Issue
Block a user