This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11271] New: posix call nftw() leaks file handles on FTW_CHDIR
- From: "ka5427-536 at online dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Feb 2010 22:24:57 -0000
- Subject: [Bug libc/11271] New: posix call nftw() leaks file handles on FTW_CHDIR
- Reply-to: sourceware-bugzilla at sourceware dot org
It seems that the POSIX call nftw() doesn't clean up correctly when the flag
FTW_CHDIR is used.
Example:
one directory - without containing subdirectories - containing 4 files.
int my_callback()
{
return 0;
}
if nftw is called 1000 times as in
nftw("." , my_callback, 20, FTW_CHDIR)
then I am left with 1000 open file handles afterwards.
--
Summary: posix call nftw() leaks file handles on FTW_CHDIR
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: ka5427-536 at online dot de
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: i?86-*-linux*
http://sourceware.org/bugzilla/show_bug.cgi?id=11271
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.