This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11271] New: posix call nftw() leaks file handles on FTW_CHDIR


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]