This is the mail archive of the
mailing list for the Cygwin project.
Gotcha, /dev/urandom (was Re: _exit() missing WSACleanup() call?)
- From: pullmoll at t-online dot de (Juergen Buchmueller)
- To: cygwin at cygwin dot com
- Date: Thu, 8 Aug 2002 18:04:04 +0200
- Subject: Gotcha, /dev/urandom (was Re: _exit() missing WSACleanup() call?)
- References: <email@example.com> <017301c23d6f$0033bc90$6132bc3e@BABEL> <01db01c23dfe$d4d4d260$6132bc3e@BABEL>
- Reply-to: pullmoll at stop1984 dot com
-----BEGIN PGP SIGNED MESSAGE-----
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html