bin/58687: gethostbyname leaks kqueue file descriptors with
pthreads and static linking
Jonathan Lennox
lennox at cs.columbia.edu
Tue Jan 13 14:10:34 PST 2004
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
Cc:
Subject: Re: bin/58687: gethostbyname leaks kqueue file descriptors with pthreads and static linking
Date: Tue, 13 Jan 2004 17:09:40 -0500
Update: this problem is still present in FreeBSD 5.2-RELEASE.
I.e., compiling the code above with
gcc -Wall -g -O2 -pg kqueue.c -o kqueue -pthread
or
gcc -Wall -g -O2 -static kqueue.c -o kqueue -pthread
causes the kqueue executable to hold 50 KQUEUE file descriptors.
The patch still applies cleanly.
More information about the freebsd-bugs
mailing list