[quagga-dev 16677] Re: bgpd: fix file descriptor leaks in vty_close

Balaji Gurudoss balajig81 at gmail.com
Sun Nov 26 16:49:33 GMT 2017


Can we use the macros(STDERR_FILENO/STDERR_FILENO) defined in uinstd.h for
this so that its easier :)

On Sun, Nov 26, 2017 at 10:12 PM, Nick Hilliard <nick at inex.ie> wrote:

> Balaji Gurudoss wrote:
> > Thanks for the patch. what does 2 signify
> >
> > if (vty->wfd > 2)
> >     close (vty->wfd);
>
> the fileno: stdout = 1, stderr = 2; > 2 = regular files opened by bgpd.
>
> Nick
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20171126/e72bb042/attachment.html>


More information about the Quagga-dev mailing list