diff options
Diffstat (limited to 'AK')
-rw-r--r-- | AK/MappedFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/MappedFile.cpp b/AK/MappedFile.cpp index 9c3199d0fe..3957d042a3 100644 --- a/AK/MappedFile.cpp +++ b/AK/MappedFile.cpp @@ -37,6 +37,12 @@ Result<NonnullRefPtr<MappedFile>, OSError> MappedFile::map(const String& path) if (ptr == MAP_FAILED) return OSError(errno); +#ifdef __serenity__ + if (set_mmap_name(ptr, size, path.characters()) < 0) { + perror("set_mmap_name"); + } +#endif + return adopt_ref(*new MappedFile(ptr, size)); } |