mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 06:00:50 +00:00
tools: return check (Coverity 1399196)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
dc790ba83d
commit
b0bde9f33d
@ -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