mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 03:07:51 +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 */
|
/* change tty */
|
||||||
fd = open("/dev/tty", O_RDWR);
|
fd = open("/dev/tty", O_RDWR);
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
ioctl(fd, TIOCNOTTY, 0);
|
if (ioctl(fd, TIOCNOTTY, 0) < 0)
|
||||||
|
printf("ioctl TIOCNOTTY failed: %s\n",
|
||||||
|
strerror(errno));
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
chdir("/");
|
chdir("/");
|
||||||
|
Loading…
Reference in New Issue
Block a user