diff --git a/AK/MappedFile.cpp b/AK/MappedFile.cpp index 9c3199d0fe9..3957d042a3b 100644 --- a/AK/MappedFile.cpp +++ b/AK/MappedFile.cpp @@ -37,6 +37,12 @@ Result, 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)); }