This is the mail archive of the cygwin@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]

Gotcha, /dev/urandom (was Re: _exit() missing WSACleanup() call?)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 07 August 2002 12:40, Conrad Scott wrote:
> As it happens, all the distractions flew away and this is now
> fixed in CVS.

I already sent me my thank you privately. And now I can ease Corinna's life, 
too, because I must excuse myself for suspecting a problem in mmap(). I was 
wrong, because mmap() seems to work perfectly fine.

The problem I have with loosing memory on Win98SE happens when I repeatedly 
fopen/fread/fclose the device /dev/urandom. Everytime I do this I loose a 
good chunk of memory, which only by accident was about the same size as my 
mmap()ed region and thus led me to search in the wrong place.

For now I can deal with it by opening /dev/urandom only once in the parent and 
using the duplicated filehandle in the child processes (I hope this will fix 
it - not yet done), but someone should inspect the code there to see where 
the memory leak is.

> // Conrad

Ciao,
Juergen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9UpaBtCKWJo++MqgRAjZqAJ99n2crTjuH/l+S1h+y2HRc2I0xJwCg0G/I
tKVuTexHUKTi2dXgmS/oBh0=
=bcOU
-----END PGP SIGNATURE-----


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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