This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin 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]

add_handle and malloc


The add_handle in "debug.cc" code still malloc's entries once the
free list is exhausted, which doesn't work very well on fork now
that the entries are (otherwise) in cygheap.  I've attached a
patch that gets rid of the malloc, so once the free list is
exhausted, new handles simply aren't added to the list.

Isn't it always the way: you write a test program for one thing
and you find something else entirely.  My real problem is that
something's leaking handles, so now it's back to that original
issue.

Cheers,

// Conrad

Attachment: ChangeLog.txt
Description: Text document

Attachment: debug.patch.txt
Description: Text document


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