bin/58687: gethostbyname leaks kqueue file descriptors with pthreads and static linking

Jonathan Lennox lennox at cs.columbia.edu
Wed Oct 29 12:00:34 PST 2003


The following reply was made to PR bin/58687; it has been noted by GNATS.

From: Jonathan Lennox <lennox at cs.columbia.edu>
To: freebsd-gnats-submit at FreeBSD.org, lennox at cs.columbia.edu
Cc:  
Subject: Re: bin/58687: gethostbyname leaks kqueue file descriptors with pthreads and static linking
Date: Wed, 29 Oct 2003 14:58:51 -0500

 Apologies, the previous patch was incomplete.  This is the correct patch,
 which has been built, installed, and confirmed to solve the problem.
 
 --- lib/libc_r/uthread/uthread_init.c.orig	Wed Oct 29 11:00:53 2003
 +++ lib/libc_r/uthread/uthread_init.c	Wed Oct 29 11:01:21 2003
 @@ -99,6 +99,7 @@
  	&_getsockopt,
  	&_ioctl,
  	&_kevent,
 +	&_kqueue,
  	&_listen,
  	&_nanosleep,
  	&_open,
 --- lib/libc/include/namespace.h.orig	Wed Oct 29 14:13:09 2003
 +++ lib/libc/include/namespace.h	Wed Oct 29 14:13:31 2003
 @@ -77,6 +77,7 @@
  #define		getsockopt			_getsockopt
  #define		ioctl				_ioctl
  /* #define		kevent				_kevent */
 +#define		kqueue				_kqueue
  #define		listen				_listen
  #define		nanosleep			_nanosleep
  #define		open				_open
 --- lib/libc/include/un-namespace.h.orig	Wed Oct 29 14:13:13 2003
 +++ lib/libc/include/un-namespace.h	Wed Oct 29 14:13:55 2003
 @@ -58,6 +58,7 @@
  #undef		getsockopt
  #undef		ioctl
  #undef		kevent
 +#undef		kqueue
  #undef		listen
  #undef		nanosleep
  #undef		open


More information about the freebsd-bugs mailing list