add_handle and malloc

Conrad Scott Conrad.Scott@dsl.pipex.com
Mon Aug 5 19:51:00 GMT 2002


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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020805/92cb321d/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug.patch.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020805/92cb321d/attachment-0001.txt>


More information about the Cygwin-patches mailing list