[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bgpd: fd passing to solve listener reconfig at runtime



On Thu, 17 Jun 2004 21:00:04 -0700
Henning Brauer <henning_(_at_)_openbsd_(_dot_)_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?