1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:57:44 +00:00

AK: Do not keep an open FD in MmappedFile

We only need an open FD while establishing the mapping,
and can close it immediately after mmap() call.
This commit is contained in:
Sergey Bugaev 2019-08-05 15:26:56 +03:00 committed by Andreas Kling
parent 837b476283
commit 55d7810fab
2 changed files with 15 additions and 18 deletions

View file

@ -24,7 +24,6 @@ public:
private:
size_t m_size { 0 };
int m_fd { -1 };
void* m_map { (void*)-1 };
};