-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#70] fix(buffer): when
mmap
-ing, don't fail on empty files
This patch introduces a fix to a long-standing problem with the buffer `mmap`-ing behaviour and empty files. Previously, when trying to map an empty file, the system would throw an exception which caused a bunch of problems in implementations. Now, it checks the file size before trying to map it and if the size is zero, the empty buffer is returned. Closes: #70
- Loading branch information
1 parent
f46144f
commit ed37464
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters