-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mmap): support read-only maps properly (#10782)
Only do msync on munmap if PROT_WRITE is set. If we lack permissions to msync, don't try and throw an error.
- Loading branch information
1 parent
42da364
commit ea4b5cb
Showing
3 changed files
with
43 additions
and
2 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/yolo/in.txt content=mmap ftw! | ||
/yolo/out.txt content=written mmap | ||
/yolo/outreadonly.txt content=readonly mmap | ||
/yolo/private.txt content= | ||
/yolo/sharedoffset.txt content=written shared mmap with offset 32768 |