Mail Archives: cygwin-developers/1998/08/03/08:23:42
At 10:43 03/08/98 -0400, Christopher Faylor wrote:
>I've rewritten select from scratch recently, so all of those mallocs/frees
>are gone. Now there are new ones, but hopefully there are fewer.
Does it still include sergey's /dev/windows stuff? I hope so.
>It still uses thread destruction as a method for determining when a handle
>has become "signalled", but it would be easy to change this behavior. I
>wrote select with that possibility in mind, in fact.
>
>This version stands a chance of being in the next public net release. If
>there is a great hue and cry, I'll change it to use events as signallers
>and try to keep the thread around if possible. The bookkeeping for doing
>this kind of thing gets hairy when you have to think about using select
>from multiple threads, however.
>
>>>You may be seeing a handle leak, however. I forgot to close the thread
>>>handles after they started. If you have the sources, the fix is simple.
>>>Just add CloseHandles to the appropriate cleanup_* routines in select.cc.
>>
>>Yes I have seen this also:). XEmacs consumes about 20,000 handles after a
>>couple of hours.
>
>--
>cgf AT cygnus DOT com "Everything has a boolean value, if you stand
>http://www.cygnus.com/ far enough away from it." -- Galena Alyson
Canada
>
---------------------------------------------------------------------------
" .sigs are like your face - rarely seen by you and uglier than you think"
Dr Andy Piper, Technical Architect, Parallax Solutions Ltd
mail: andyp AT parallax DOT co DOT uk web: www.parallax.co.uk/~andyp
- Raw text -