mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:19:13 +00:00
Merge pull request #2806 from opensourcerouting/vty-term-fd
lib: fix "-t" command line option
This commit is contained in:
commit
7a07a176cf
@ -2303,9 +2303,9 @@ void vty_close(struct vty *vty)
|
|||||||
* additionally, we'd need to replace these fds with /dev/null. */
|
* additionally, we'd need to replace these fds with /dev/null. */
|
||||||
if (vty->wfd > STDERR_FILENO && vty->wfd != vty->fd)
|
if (vty->wfd > STDERR_FILENO && vty->wfd != vty->fd)
|
||||||
close(vty->wfd);
|
close(vty->wfd);
|
||||||
if (vty->fd > STDERR_FILENO) {
|
if (vty->fd > STDERR_FILENO)
|
||||||
close(vty->fd);
|
close(vty->fd);
|
||||||
} else
|
if (vty->fd == STDIN_FILENO)
|
||||||
was_stdio = true;
|
was_stdio = true;
|
||||||
|
|
||||||
if (vty->buf)
|
if (vty->buf)
|
||||||
|
Loading…
Reference in New Issue
Block a user