delorie.com/archives/browse.cgi | search |
On Dec 14 13:59, Wayne Christopher wrote: > I have a 268MB file open for writing. I close it and then > immediately try to mmap() it, and a get ENOMEM. However I do have the > VM space available and can malloc() the size of the file right after the > failure. Also, I have mmap()'ed other similar files in the same program > before this, but these had not just been closed. > > My initial guess was that it was timing related, but if I wait for 5 > seconds and try again I still get the failure. > > I wasn't able to duplicate it in a small example since my app has a bunch > of threads and is doing other stuff at the same time. > > Any suggestions for solutions or workarounds? Not without testcase and version information. Is that under 1.5.24-2 or 1.5.25-x? Could you test if the result differs between these two versions? If so, how? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |