[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bgpd: fd passing to solve listener reconfig at runtime
* Jared Yanovich <phirerunner@comcast.net> [2004-06-18 12:14]:
> On Thu, 17 Jun 2004 21:00:04 -0700
> Henning Brauer <henning@openbsd.org> wrote:
>
> > Index: buffer.c
> > ===================================================================
> > RCS file: /cvs/src/usr.sbin/bgpd/buffer.c,v
> > retrieving revision 1.18
> > diff -u -r1.18 buffer.c
> > --- buffer.c 29 Apr 2004 19:56:04 -0000 1.18
> > +++ buffer.c 18 Jun 2004 03:53:25 -0000
> ...
> > @@ -163,6 +183,9 @@
> > errno = 0;
> > return (-2);
> > }
> > +
> > + if (buf != NULL && buf->fd == -1)
> > + close(buf->fd);
>
> Should that be buf->fd != -1?
eh... yes ;)
thanks.
--
http://2suck.net/hhwl.html - http://www.bsws.de/
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)