New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mmap\'s resize method resizes the file in win32 but not unix #38382
Comments
In the resize method under win32 you have something
Which resizes the file Under Unix you need to call ftruncate(self->fileno, new_size) before calling remap() to make it do the same thing. |
Logged In: YES Would you like to contribute a patch? Please make sure to |
Logged In: YES Please, could you verify if this problem persists in Python 2.3.4 If yes, in which version? Can you provide a test case? If the problem is solved, from which version? Note that if you fail to answer in one month, I'll close this bug Thank you! . Facundo |
Logged In: YES Deprecated. Reopen only if still happens in 2.3 or newer. . Facundo |
Logged In: YES The problem still persists in Python 2.3 and 2.4. A quick |
Logged In: YES Reopened as posted that still is a bug. |
Logged In: YES This is not trivial since the filehandle can be closed at The Windows specific code duplicates the filehandle upon |
Logged In: YES Attaching patch which duplicates the file handle under UNIX |
Logged In: YES Okay, committed as |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: