src/winsup/cygwin ChangeLog autoload.cc autolo ...

egor duda deo@logos-m.ru
Thu May 3 08:36:00 GMT 2001


Hi!

Thursday, 03 May, 2001 Christopher Faylor cgf@redhat.com wrote:

>>On Thu, May 03, 2001 at 05:14:17PM +0400, egor duda wrote:
>>>Hi!
>>>
>>>Thursday, 03 May, 2001 Corinna Vinschen cygwin-patches@cygwin.com wrote:
>>>
>>>CV> Couldn't you use an instance of fhandler_dev_random?
>>>
>>>ok, here it goes.
>>>
>>>2001-05-03  Egor Duda  <deo@logos-m.ru>
>>>
>>>        * fhandler_socket.cc (set_connect_secret): Use /dev/random to
>>>        generate secret cookie.
>>
>>What happens to the buf that you allocate here?  It looks like a memory
>>leak.

CF> Just to be a little clearer:  It looks like a memory leak in execed proceses.
CF> ccalloced memory is copied to execed processes.

i see. i had a little different idea of what cygheap is used for.

so, i should use normal malloc instead? or it's better to simply make it static?

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19




More information about the Cygwin-patches mailing list