[PATCH] Avoid res_nsend fd leaks

Ulrich Drepper drepper@redhat.com
Wed Jan 3 15:22:00 GMT 2001


Jakub Jelinek <jakub@redhat.com> writes:

> 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* resolv/resolv.h (struct __res_state): Add nsinit field.
> 	* resolv/res_send.c (res_nsend): Use it instead of nscount.
> 	* resolv/res_init.c (__res_vinit): Initialize it.
> 	(res_nclose): Clear it instead of nscount.

This patch looks much better than the other two.  I'll look a bit more
at it but it seems to be correct.  Thanks,

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list